cstar.system.environment.CStarEnvironment.load_lmod_modules

Attention

This project is still in an early phase of development.

The python API is not yet stable, and some aspects of the schema for the blueprint and workplan will likely evolve. Therefore whilst you are welcome to try out using the package, we cannot yet guarantee backwards compatibility. We expect to reach a more stable version in 2026.

cstar.system.environment.CStarEnvironment.load_lmod_modules#

CStarEnvironment.load_lmod_modules(lmod_file) None#

Loads necessary modules for this machine using Linux Environment Modules.

This function:

  • Resets the current module environment by executing module reset.

  • Loads each module listed in the .lmod file for the system, located at

    <root>/additional_files/lmod_lists/<system_name>.lmod.

Raises:
  • EnvironmentError – If the system does not use Lmod or module reset fails.

  • RuntimeError – If any module load <module_name> command fails.