raw_data_to_folder
- specatalog.data_management.measurement_management.raw_data_to_folder(raw_data_path, fmt, base_dir, ms_id)[source]
Copy raw datafiles to the archive. 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) – Path to the raw data file without suffix.
fmt (str) – Format of the raw_data. One of the supported formats [“bruker_bes3t”, “cw_epr”, “uvvis_ulm”, “uvvis_freiburg”].
base_dir (str or Path) – Path to the root-folder of the archive.
ms_id (str or int) – Number of the measurement.
- Raises:
FileNotFoundError – An error is raised if the no raw data at the given path can be found.
ValueError – An error is raised if the fmt-string is not valid.
- Return type:
None.