Skip to content

Commit

Permalink
Merge pull request #824 from OpenFreeEnergy/mikemhenry-patch-1
Browse files Browse the repository at this point in the history
Don't dump all results to std out
  • Loading branch information
richardjgowers authored Apr 17, 2024
2 parents 59352a1 + 7f9c752 commit 2280b01
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/mypy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
create-args: >-
python=3.9
rdkit=2023.09.5
init-shell: bash

- name: "Install steps"
Expand Down
6 changes: 0 additions & 6 deletions openfecli/commands/quickrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,6 @@ def quickrun(transformation, work_dir, output):
json.dump(out_dict, outf, cls=JSON_HANDLER.encoder)

write(f"Here is the result:\n\tdG = {estimate} ± {uncertainty}\n")

write("Additional information:")
for result in dagresult.protocol_unit_results:
write(f"{result.name}:")
write(result.outputs)

write("")

if not dagresult.ok():
Expand Down
1 change: 0 additions & 1 deletion openfecli/tests/commands/test_quickrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def test_quickrun(extra_args, json_file):
result = runner.invoke(quickrun, [json_file] + extras)
assert result.exit_code == 0
assert "Here is the result" in result.output
assert "Additional information" in result.output

if outfile := extra_args.get('-o'):
assert pathlib.Path(outfile).exists()
Expand Down

0 comments on commit 2280b01

Please sign in to comment.