From: Dustin M. <dus...@gm...> - 2016-02-17 01:16:17
|
Hi all, I get the following error when trying to use the addRotation and addShift methods in the ParticleList class: In [13]: myPl.addRotation(myRot) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-13-80fb14b533f5> in <module>() ----> 1 myPl.addRotation(myRot) /opt/pytom/basic/structures.py in addRotation(self, rot) 3076 @author: FF 3077 """ -> 3078 assert isinstance(object=rot, class_or_type_or_tuple=Rotation), "addRotation: rot must be Rotation!" 3079 for part in self._particleList: 3080 trot = part.getRotation() TypeError: isinstance() takes no keyword arguments In [14]: myPl.addShift(myShift) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-14-7e01fc0362f4> in <module>() ----> 1 myPl.addShift(myShift) /opt/pytom/basic/structures.py in addShift(self, translation) 3090 @author: FF 3091 """ -> 3092 assert isinstance(object=translation, class_or_type_or_tuple=Shift), "addShift: rot must be Rotation!" 3093 for part in self._particleList: 3094 ttrans = part.getShift() TypeError: isinstance() takes no keyword arguments — Cheers, Dustin |