io

Glotaran IO utility module.

Functions

Summary

chdir_context

Context manager to change directory to folder_path.

create_clp_guide_dataset

Create dataset for clp guidance.

get_script_dir

Get the parent folder a script is executed in.

load_datasets

Load multiple datasets into a mapping (convenience function).

make_path_absolute_if_relative

Get a path as absolute if relative.

relative_posix_path

Ensure that source_path is a posix path, relative to base_path if defined.

safe_dataframe_fillna

Fill NaN values with fill_value if the column exists or do nothing.

safe_dataframe_replace

Replace column values with replace_value if the column exists or do nothing.

Classes

Summary

DatasetMapping

Wrapper class for a mapping of datasets which can be used for a file_loadable_field.