colour.write_sds_to_csv_file

colour.write_sds_to_csv_file(sds, path, delimiter=', ', fields=None)[source]

Writes the given spectral distributions to given CSV file.

Parameters:
  • sds (dict) – Spectral distributions to write.
  • path (unicode) – Absolute CSV file path.
  • delimiter (unicode, optional) – CSV file content delimiter.
  • fields (array_like, optional) – CSV file spectral data fields names. If no value is provided the order of fields will be the one defined by the sorted spectral distributions dict.
Returns:

Definition success.

Return type:

bool

Raises:

RuntimeError – If the given spectral distributions have different shapes.