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
esm_utilities.utils module¶
- esm_utilities.utils.check_valid_version(versionrange, version='')[source]¶
Returns
True
if theversion
provided matches the condition ofversionrange
.- 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, False –
True
if the condition is met,False
if not.- Return type:
bool