From: Thomas H. <th...@gm...> - 2016-02-17 01:37:20
|
Hi Dustin, Hotfix: delete the object= and class_or_type_or_tuple parameter names in pytom.basic.structures and the respective lines. Even though the parameters are named as they were used in the code, the function does not keyword arguments. Fails on my python 2.7.10 installation. I am adding that to the next release. Thomas > On Feb 16, 2016, at 5:16 PM, Dustin Morado <dus...@gm...> wrote: > > 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 > <ipytom.err>------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140_______________________________________________ > Pytom-mail mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pytom-mail |