pywatershed.utils.get_or_compile_prms_exe

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 in bin/.

Parameters:
  • exe_desc (str) – See get_prms_exe_name().

  • force (bool) – Passed through to compile_prms(). Forces recompilation even when the binary already exists.

  • compile_source (str or None) – Override the source version to compile. When None the source version is inferred from exe_desc.

Return type:

Path

Returns:

pathlib.Path – Absolute path to the executable.

Raises:

FileNotFoundError – If the binary does not exist and cannot be compiled.