Skip to content

Commit

Permalink
Replaced mktemp with mkstemp (ParmEd#1328)
Browse files Browse the repository at this point in the history
Signed-off-by: fazledyn-or <[email protected]>
  • Loading branch information
fazledyn-or authored Jan 18, 2024
1 parent ad240ac commit b6656d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parmed/tools/simulations/openmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,8 @@ def energy(parm, args, output=sys.stdout):
if applayer:
# Write out a temporary topology file, load an amberprmtopfile, then
# delete that file
tmp = tempfile.mktemp(suffix='.parm7')
fd, tmp = tempfile.mkstemp(suffix='.parm7')
os.close(fd)
try:
parm.write_parm(tmp)
parm_ = amberprmtopfile.AmberPrmtopFile(tmp)
Expand Down

0 comments on commit b6656d3

Please sign in to comment.