Adding new loaders

If your group uses a new file format that is not implemented to specatalog you can contribute to the code and add a new loader function.

  1. Write a function, that loads your data:

    def load_xyz(path_to_data):
            ...
            return data, abscissa, meta
    

data and abscissa should be of type numpy.ndarray, meta should be a dictionary that contains the metadata as key-value pairs.

  1. Copy the functions to the file data_management/data_loader.py.

  2. Open the file data_management/measurement_management.py.

  3. Add a new elif-statement for the new format to the functions raw_data_to_folder and raw_data_to_hdf5. Don’t forget to adapt the docstrings of the functions and add the new format.

  4. Add the new string to gui/gut_functions.py in the function change_ms_mol.

  5. Update the documentation tutorial_measurements.rst and add the new format in the ..note of No.5 in the section Creation of a new entry.