MCPcopy Create free account
hub / github.com/RenderKit/oidn / save_csv

Function save_csv

training/util.py:73–80  ·  view source on GitHub ↗
(filename, rows)

Source from the content-addressed store, hash-verified

71
72# Saves a list of rows into a CSV file
73def save_csv(filename, rows):
74 with open(filename, 'w') as f:
75 csv_writer = csv.writer(f, quoting=csv.QUOTE_NONNUMERIC)
76 for row in rows:
77 if type(row) in [list, tuple]:
78 csv_writer.writerow(row)
79 else:
80 csv_writer.writerow([row])
81
82# Saves a ZIP file containing the specified input files
83def save_zip(output_filename, input_filenames, root_dir=None):

Callers 1

main_workerFunction · 0.85

Calls 1

typeClass · 0.85

Tested by

no test coverage detected