runtraj.models.flexpart.flexpart_version#

runtraj.models.flexpart.flexpart_version(directory)[source]#

Return the version of the FLEXPART checkout in directory.

A version file in the checkout wins; otherwise the git commit, with -dirty when the source has uncommitted changes. It is recorded with a run but not hashed: the executable’s SHA-256 is.

Raises:

FileNotFoundError – If the checkout has neither a version file nor git history.

Return type:

str

Parameters:

directory (str | Path)