UFMConverter.csv_to_ufm#

UFMConverter.csv_to_ufm(csv, format_=CSVFormat.SQUARE, ufm=None, title=None)[source]#

Conver csv file to UFM format.

Parameters:
  • csv (pathlib.Path) – Path to CSV file to convert

  • format (CSVFormat) – Format of the CSV file, default CSVFormat.SQUARE.

  • ufm (pathlib.Path, optional) – Optional path to UFM to create, defaults to ‘{csv}.ufm’.

  • title (str, optional) – Optional title of the matrix, used for logging.

  • format_ (CSVFormat)

Returns:

Path to UFM file created.

Return type:

pathlib.Path

Raises:

NotImplementedError – Conversion is only implemented for the SQUARE CSVFormat, any others will currently raise an error.