raw_data_to_folder

specatalog.data_management.measurement_management.raw_data_to_folder(raw_data_path, fmt, ms_id)[source]

Copies raw data files to the archive directory. Existing data with the same name get overwritten. The data are saved at <base_dir>/data/M<ms_id>/raw/<raw_data_file_name>. Depending on the format (fmt) all important measurement-files are copied.

Parameters:
  • raw_data_path (str) – Base path to raw data files (without extension).

  • fmt (Literal["bruker_bes3t", "cw_epr", "uvvis_ulm", "uvvis_freiburg"]) – Data format identifier.

  • ms_id (int) – Measurement ID number.

Raises:
  • FileNotFoundError – If required raw data files are missing.

  • ValueError – If format is not supported.

Return type:

None