Closed pindakaas42 closed 6 years ago
Although the empty trajectories seem to cause lots of problems everywhere. Using above trajectory, for example: pt.distance(traj[0:0], '@1 @2') where pt.distance(traj[0:0], '@1 @2')
thanks for your suggestion.
Although the empty trajectories seem to cause lots of problems everywhere.
seems that the [0:0] is rarely (and should not be) used.
I close this issue for above reason. Thanks @pindakaas42 again for your suggestion. Do feel free to open other issues. Cheers.
For API consistency it can be nice to be able to load an empty slice of a trajectory. The desired action is performed but an error is printed:
import pytraj as pt from pytraj.testing import get_fn fn, tn = get_fn('ala3') traj = pt.iterload(fn, tn, frame_slice=(0,0))