pywatershed.utils.get_or_compile_prms_exe#
- pywatershed.utils.get_or_compile_prms_exe(exe_desc='prms', force=False, compile_source=None)[source]#
Return the PRMS/GSFLOW executable, compiling from source if needed.
PRMS binaries are compiled automatically when they are not present (or when force is
True). GSFLOW has no source in this repository, so its binary must already exist inbin/.- Parameters:
exe_desc (
str) – Seeget_prms_exe_name().force (
bool) – Passed through tocompile_prms(). Forces recompilation even when the binary already exists.compile_source (
strorNone) – Override the source version to compile. WhenNonethe source version is inferred from exe_desc.
- Return type:
- Returns:
pathlib.Path– Absolute path to the executable.- Raises:
FileNotFoundError – If the binary does not exist and cannot be compiled.