Closed hectormartinezdev closed 6 years ago
>>> pytraj.show_versions() 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609] ('pytraj version = ', '2.0.0') ('cpptraj version = ', u'V17.00') ('cpptraj internal version = ', u'V4.3.3') ('cpptraj compiled flag = ', u' -DHASBZ2 -DHASGZ -DBINTRAJ')
Hey! I'm using pytraj to split my PDB into models, and I use this code:
import pytraj as pt traj = pt.iterload("2m9r.pdb") pt.write_traj("2m9r_models.pdb", traj, options="multi")
When I use this twice, the files are ovewrited, while the default option for overwrite is False.
The code shouldn't overwrite the files.
Note: the PDB is available here
thank you for your feedback. The issue is fixed in #1444
Issue type
Useful info
Actual behaviour
Hey! I'm using pytraj to split my PDB into models, and I use this code:
When I use this twice, the files are ovewrited, while the default option for overwrite is False.
Desired behaviour
The code shouldn't overwrite the files.
Note: the PDB is available here