Skip to content

Commit

Permalink
Fixed problem in commandline for Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsaxe committed May 12, 2024
1 parent 87ac772 commit b3174bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
=======
History
=======
2024.5.12.1 -- Fixed problem with commandline in Docker
* There was a problem in the commandline for running TorchANI in a Docker container.

2024.5.12 -- Added support for Docker and for Energy Scan
* Creating images for Docker automatically on release
* Added the energy and gradients for output to JSON for e.g. Energy Scan
Expand Down
4 changes: 2 additions & 2 deletions torchani_step/torchani.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def run(self):
# Use the matching version of the seamm-torchani image by default.
config["version"] = self.version

cmd = "{code} input.json > output.txt 2> stderr.txt"
cmd = ["{code}", "input.json", ">", "output.txt", "2>", "stderr.txt"]

return_files = [
"output.json",
Expand All @@ -295,7 +295,7 @@ def run(self):
self.logger.info(f"{cmd=}")

result = executor.run(
cmd=[cmd],
cmd=cmd,
config=config,
directory=self.directory,
files=files,
Expand Down

0 comments on commit b3174bf

Please sign in to comment.