nomad_camels_toolbox package

Subpackages

Submodules

nomad_camels_toolbox.data_reader module

nomad_camels_toolbox.data_reader.decide_entry_key(file_handle, entry_key: str = '')
nomad_camels_toolbox.data_reader.h5_group_to_dict(group)
Parameters:

group

nomad_camels_toolbox.data_reader.read_camels_file(file_path, data_set_key: str = '', entry_key: str = '', return_dataframe: bool = True, read_variables: bool = True, return_fits: bool = False, read_all_datasets: bool = False)

Read data from a CAMELS file.

Parameters:
  • file_path (str) – Path to the CAMELS file.

  • data_set_key (str, optional (default: "")) – Key of the data set to read. If not specified, the main data set is read.

  • entry_key (str, optional (default: "")) – Entry-Key to read. If not specified and there is more than one entry, the user is asked to select one. Usually files only have one entry “CAMELS_entry”, i.e. this is not needed.

  • return_dataframe (bool, optional (default: True)) – Whether to return the data as a pandas DataFrame. Requires pandas to be installed if pandas is not installed, this parameter is ignored.

  • read_variables (bool, optional (default: True)) – Whether to read the variables from the data set.

  • return_fits (bool, optional (default: False)) – Whether to return the fits of the data set.

  • read_all_datasets (bool, optional (default: False)) – Whether to read all datasets in the file. If True, the data_set_key parameter is ignored. If True, a dictionary with the data sets is returned.

Returns:

  • data (dict or pd.DataFrame) – The data from the data set.

  • fit_dict (dict) – The fits of the data set, only returned if return_fits is True.

nomad_camels_toolbox.plotting module

nomad_camels_toolbox.qt_viewer module

Module contents