traj = amep.load.traj(
"./data",
mode = "lammps",
dumps = "*.txt"
)
traj.nojump()
msd = amep.evaluate.MSD(traj, pbc=True, use_nojump=True)
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
Cell In[27], line 1
----> 1 msd = amep.evaluate.MSD(traj, pbc=True, use_nojump=True)
File D:\amep\evaluate.py:3812, in MSD.__init__(self, traj, ptype, skip, nav, use_nojump, pbc)
3807 if self.__use_nojump and self.__traj[0].nojump_coords() is None:
3808 raise ValueError(
3809 'No nojump coordinates available. Call traj.nojump() '\
3810 'to calculate the nojump coordinates.'
3811 )
-> 3812 elif self.__pbc and self.__traj[0].unwrapped_coords() is None\
3813 and self.__traj[0].nojump_coords() is None:
3814 raise ValueError(
3815 'Neither unwrapped nor nojump coordinates are available. '\
3816 'Call traj.nojump() to calculate the nojump coordinates or '\
3817 'do not apply periodic boundary conditions.'
3818 )
3819 else:
3820 # get mode
File D:\amep\base.py:582, in BaseFrame.unwrapped_coords(self, **kwargs)
566 def unwrapped_coords(self, **kwargs) -> np.ndarray:
567 """
568 Returns the unwrapped coordinates of all particles or of
569 all particles of a specific particle type.
(...)
580
581 """
--> 582 return self.__read_data("uwcoords",**kwargs)
File D:\amep\base.py:967, in BaseFrame.__read_data(self, key, ptype, pid)
964 return data[mask.astype(bool)]
966 else:
--> 967 raise KeyError(
968 f"The key {key} does not exist in the frame. "\
969 "Returning no data!"
970 )
KeyError: 'The key uwcoords does not exist in the frame. Returning no data!'