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.
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.
Copy the functions to the file
data_management/data_loader.py.Open the file
data_management/measurement_management.py.Add a new
elif-statement for the new format to the functionsraw_data_to_folderandraw_data_to_hdf5. Don’t forget to adapt the docstrings of the functions and add the new format.Add the new string to
gui/gut_functions.pyin the functionchange_ms_mol.Update the documentation
tutorial_measurements.rstand add the new format in the..noteof No.5 in the section Creation of a new entry.