nicetoolbox.utils.to_csv

Functions

convert_npz_to_csv_files

Converts an NPZ file to multiple CSV files.

results_to_csv

Converts all NPZ files in the results folder to CSV files and saves them in the specified output folder.

nicetoolbox.utils.to_csv.convert_npz_to_csv_files(npz_path, output_folder) None[source]

Converts an NPZ file to multiple CSV files.

For each npy array in the NPZ file, a CSV file is created and saved in the output folder.

Parameters:
  • npz_path (str) – The path to the NPZ file.

  • output_folder (str) – The path to the output folder where the CSV files will be saved.

Returns:

None

nicetoolbox.utils.to_csv.results_to_csv(results_folder, csv_output_folder) None[source]

Converts all NPZ files in the results folder to CSV files and saves them in the specified output folder.

Parameters:
  • results_folder (str) – The path to the folder containing NPZ result files.

  • csv_output_folder (str) – The path to the folder where CSV files will be saved.