storx#

Package for organized storage of data working with the torx library.

Modules

hierarchy

Helps dealing with hierarchical data.

Functions

check_storage_integrity

Perform an integrity check of the entire storage.

entry_exists

Return true if an entry exists in the storage.

get_active_hierarchy

Return the hierarchy that is active, i.e. specified by the code name.

get_modifier_hierarchy

Return the hierarchy modifiers.

get_storage_metadata

Return a hierarchy object that represents the data that is stored.

hash_array

Return a hash for the given array created.

load_dataset

Load an xarray dataset from the correct location in the storage.

set_code_name

Set the code name used in choosing which hierarchy file to use.

set_custom_storage_path

Set the option to use a custom storage path given by the path provided.

set_run_name

Set the name of the run that is stored or loaded.

set_silent

Set the logger to silent or to noisy otherwise.

set_silent_load

Set the logger data load to silent or to noisy otherwise.

set_storage_partition

Set the partition of the centralized storage path.

store_dataset

Write an xarray dataset to file in the correct location of the storage.

tic

Log the start time of an operation and saves metadata internally.

toc

Log the end time of an operation and calculate the elapsed time.

valid_entry_exists

Return true if a valid entry exists in the storage.