pywatershed.utils.compile_prms

Contents

pywatershed.utils.compile_prms#

pywatershed.utils.compile_prms(source='5.2.1', force=False)[source]#

Compile PRMS from source and return the path to the resulting binary.

Parameters:
  • source (str) – Source version to compile; a key of COMPILABLE_SOURCES.

  • force (bool) – If True, recompile even when the binary already exists. Default is False (skip if binary present).

Return type:

Path

Returns:

pathlib.Path – Absolute path to the compiled binary.

Raises: