utils
Description
Supporting functions
Modules
- class bpf90tools.utils.CheckMixin[source]
Bases:
objectA mixin class that is used to validate data, files, and directories. Used to refine the behavior of other classes, not intended to spawn self-usable objects.
- static is_dir(path_dir: str | Path) bool[source]
Method that checks if the passed path points to a directory.
- Parameters:
path_dir – Path to the directory to be checked for existence.
- Returns:
Return true if the directory exist and false if the dir does not exist.
- bpf90tools.utils.run_app(app_file: Path, param_file: Path, dir_cwd: Path = None) bool[source]
Running programs of the blupf90 family.
- Parameters:
app_file – Application to run.
param_file – Parameter file that is needed to run the application.
dir_cwd – Directory where the application is located.
- Returns:
Returns true if the method completed without errors, false if an error or exception occurred.