EPWpy.default.set_default#
Classes
|
Internal helper class that defines and manages default parameter values used throughout the EPWpy framework. |
- class EPWpy.default.set_default.SetDefaultVals(code=None)[source]#
Bases:
objectInternal helper class that defines and manages default parameter values used throughout the EPWpy framework.
This class is not intended to be instantiated directly by users. It is primarily used internally to initialize consistent default paths, code settings, and runtime parameters across different EPWpy modules.
- Parameters:
code (str or None, optional) -- Name or path of the simulation code for which default values are being set. Typically 'qe', 'epw', or 'bgw'. Default is None.
- code#
Identifier or path of the code for which defaults apply.
- Type:
str or None
- home#
Current working directory when the object is initialized. Used as the default base path for relative directories.
- Type:
str
Notes
This class is invoked internally by EPWpy setup and configuration modules.
Modifying defaults manually is discouraged; use higher-level configuration interfaces instead.
The defaults defined here ensure that all components of EPWpy share a consistent runtime environment.
Examples
>>> from EPWpy.default.set_default import SetDefaultVals >>> defaults = SetDefaultVals(code="<path to qe bin>") >>> print(defaults.home) '/home/user/current_project'