esm_utilities package

Top-level package for ESM Utilities.

Submodules

esm_utilities.cli module

Console script for esm_utilities.

esm_utilities.pool_sync module

Syncs pools between two supercomputers

esm_utilities.pool_sync.get_pool_for_machine(machine)[source]

Determines the pool directory for a particular HPC.

Returns:

The pool directory

Return type:

Pathlib.path or None

Recursively yields all links in the pool.

Yields:

Pathlib.path – Symlinks in the pool_dir

esm_utilities.pool_sync.main()[source]

Main function to sync between two computers

esm_utilities.utils module

esm_utilities.utils.check_valid_version(versionrange, version='')[source]

Returns True if the version provided matches the condition of versionrange.

Parameters:
  • version (str) – String specifying the version number with the format X.Y.Z.

  • versionrange (str) – Condition for the version range, expressed as a comparison operator followed by a version number in the format X.Y.Z.

Returns:

True, FalseTrue if the condition is met, False if not.

Return type:

bool

esm_utilities.utils.logfile_stats(logfile_to_read)[source]