Closed pindakaas42 closed 4 years ago
hi @pindakaas42, can you please try pytraj.write_traj
with time=True
?
okay that works, thanks.
my only question would be why you would want to write zeros instead of the actual time? This should save neither computation time in any relevant way nor disk space, as the file is filled with zeros.
@pindakaas42 good question. When I introduced the time=False
option, I thought that time won't be written to the output file. Let me doublecheck and turn it on as default if what you said is true. thanks.
my only question would be why you would want to write zeros instead of the actual time?
... when there is no actual time, e.g: writing a bunch of pdb files to .nc format.
Using the save method of the Trajectory object as a .nc file sets all time information in eacht frame to zero. (also happens with TrajectoryIterator) Version: pytraj-2.0.5-py2.7-linux-x86_64.egg