dgpost: apidoc documentation
- dgpost.run_with_arguments()
Main external execution function.
This is the function executed when dgpost is launched using the executable. It processes the
--versioncommand, sets the loglevel based on the number of-v/-qpassed, and forwards theinfileargument torun().
- dgpost.run(path: str, patch: str | None = None) tuple[dict, dict]
Main API execution function. Loads the recipe from the provided
path, patches the file paths specified within the recipe, if necessary, and processes the following entries, in order:Note
When saving a table, its metadata entry will contain dgpost version information, as well as a copy of the recipe used to create the saved object.
- Parameters:
path – Path to the job specification, passed to
dgpost.utils.parse()- Returns:
A tuple of the loaded datagrams and exported & transformed tables.
- Return type:
(datagrams, tables)
Subpackages
- dgpost.transform package
- Subpackages
- Submodules
- catalysis: common calculations in catalytic testing
- chromatography: chromatographic trace postprocessing library
- complex: utilities for handling complex numbers
- electrochemistry: calculations relevant in electrochemistry
- impedance: fitting electrochemical impedance spectra
- mixtures: converting representations of mixtures
- rates: determining molar rates of chemical species
- reflection: utilities for processing reflection coefficient traces
- table: utilities for operations with tables
- dgpost.utils package
extract()transform()load()parse()save()plot()pivot()- Submodules
- extract: extract and interpolate data into tables
- helpers: helper functions for the
transformpackage element_from_formula()default_element()name_to_chem()columns_to_smiles()electrons_from_smiles()pQ()separate_data()load_data()kwarg_to_quantity()merge_units()combine_tables()arrow_to_multiindex()keys_in_df()key_to_tuple()get_units()set_units()fill_nans()- load: load datagrams and tables
- parse: YAML and JSON input handler
update_recipe()parse()- pivot: reorder tables using columns
- plot: create reproducible plots from tables
- save: save and export tables into files
- transform: transform and calculate data in tables