Amber-MD / pytraj

Python interface of cpptraj
https://amber-md.github.io/pytraj
170 stars 38 forks source link

Passing a tuple as index to TrajectoryIterator causes memory crash #1511

Closed pindakaas42 closed 4 years ago

pindakaas42 commented 4 years ago

Just try with some trajectory iterator traj.

to do: traj[(1,)]

This causes a crash.

This is in version pytraj-2.0.5-py2.7-linux-x86_64.egg from amber

hainm commented 4 years ago

thank you for your report.

hainm commented 4 years ago

fixed in #1538

In [4]: traj[(1,)]                                                                                                                                            
Out[4]: <Frame with 223 atoms>

Thanks @pindakaas42 for your report.