Skip to content

Commit

Permalink
redirect out of csplit to null when reading orbitals
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeZ committed Apr 17, 2019
1 parent 6f1648d commit 01f709d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qmflows/parsers/cp2KParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def move_restart_coeff(path):
os.chdir(root)
# Split File into the old and new set of coefficients
cmd = 'csplit -f coeffs -n 1 {} "/HOMO-LUMO/+2"'.format(file_name)
subprocess.call(cmd, shell=True)
subprocess.call(cmd, shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
# Move the new set of coefficients to the Log file
os.rename('coeffs1', file_name)
# Remove old set of coefficients
Expand Down

0 comments on commit 01f709d

Please sign in to comment.