MCPcopy Create free account
hub / github.com/codemeta/codemeta / write_aggregate

Function write_aggregate

scripts/aggregate.py:82–88  ·  view source on GitHub ↗

Writes the aggregated crosswalk table.

(aggregate_columns)

Source from the content-addressed store, hash-verified

80 pass
81
82def write_aggregate(aggregate_columns):
83 """Writes the aggregated crosswalk table."""
84 rows = rows_from_columns(aggregate_columns)
85 rm_file(DEST_FILENAME)
86 with open(DEST_FILENAME, 'a') as fd:
87 writer = csv.writer(fd, lineterminator='\n')
88 writer.writerows(rows)
89
90def main():
91 """Entry-point of the script."""

Callers 1

mainFunction · 0.85

Calls 2

rows_from_columnsFunction · 0.85
rm_fileFunction · 0.70

Tested by

no test coverage detected