Skip to content

Commit

Permalink
Merge pull request #2 from soge8904/jdftx
Browse files Browse the repository at this point in the history
Merge into main
  • Loading branch information
soge8904 authored Oct 16, 2024
2 parents b69cacb + 13a42b0 commit 8202dbd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 69 deletions.
64 changes: 0 additions & 64 deletions jdftxcov.xml

This file was deleted.

2 changes: 1 addition & 1 deletion src/custodian/jdftx/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def run(self, directory="./"):
):
# use line buffering for stderr
return subprocess.run(
shlex.split(),
shlex.split(cmd),
cwd=directory,
stdout=f_std,
stderr=f_err,
Expand Down
9 changes: 5 additions & 4 deletions src/custodian/vasp/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,12 @@ def run(self, directory="./"):
cmd[-1] += ".gamma"
logger.info(f"Running {' '.join(cmd)}")
with (
open(os.path.join(directory, self.output_file), "w"),
open(os.path.join(directory, self.stderr_file), "w", buffering=1),
open(os.path.join(directory, self.output_file), "w") as f_std,
open(os.path.join(directory, self.stderr_file), "w", buffering=1) as f_err,
):
# use line buffering for stderrsubprocess.Popen(cmd, cwd=directory, stdout=f_std, stderr=f_err, start_new_session=True)
return # pylint: disable=R1732
# use line buffering for stderr
return subprocess.Popen(cmd, cwd=directory, stdout=f_std, stderr=f_err, start_new_session=True)
# pylint: disable=R1732

def postprocess(self, directory="./") -> None:
"""
Expand Down

0 comments on commit 8202dbd

Please sign in to comment.