Skip to content

Commit

Permalink
revise nwchem version for version processing change in qcel
Browse files Browse the repository at this point in the history
  • Loading branch information
loriab committed Sep 17, 2024
1 parent bdc9f56 commit 76b863e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qcengine/programs/nwchem/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ def get_version(self) -> str:
success, output = execute(command, {"v.nw": ""}, scratch_directory=config.scratch_directory)

if success:
print("REV", output["stdout"])
for line in output["stdout"].splitlines():
if "nwchem branch" in line:
branch = line.strip().split()[-1]
if "nwchem revision" in line:
revision = line.strip().split()[-1]
self.version_cache[which_prog] = safe_version(branch + "+" + revision)
revision = "+" + line.strip().split()[-1]
revision = "" if (revision == "+N/A") else revision
self.version_cache[which_prog] = safe_version(branch + revision)
else:
raise UnknownError(output["stderr"])

Expand Down

0 comments on commit 76b863e

Please sign in to comment.