AttributeError in TrajectoryHOOMD due to hoomd API change

Issue #38 resolved
Carl Simon Adorf created an issue

Error occurs due to API change with hoomd's box dim

  File "/home/simon/.local/lib/python2.7/site-packages/freud/trajectory.py", line 139, in __iter__
    yield self[idx];
  File "/home/simon/.local/lib/python2.7/site-packages/freud/trajectory.py", line 132, in __getitem__
    return self._get_current_frame();
  File "/home/simon/.local/lib/python2.7/site-packages/freud/trajectory.py", line 1075, in _get_current_frame
    box = Box(hoomd_box[0], hoomd_box[1], hoomd_box[2], self.sysdef.dimensions == 2);
AttributeError: boxdim instance has no attribute '__getitem__'

I fixed it locally and will send a pull request immediately.

Comments (2)

  1. Log in to comment