Exemple #1
0
    def copy_into(self, into):
        """Helper function for copy(): make a deep copy,"""
        if not isinstance(into, AliasedVectorAttributes):
            raise TypeError('copy_into() cannot copy into other types than \
AliasedVectorAttributes or its subclasses')
        AliasedArrayAttributes.copy_into(self, into)
        into._xtolerance = self._xtolerance
Exemple #2
0
    def copy_into(self, into):
        if not isinstance(into, MatrixAttrMixin):
            raise TypeError('copy_into() cannot copy into other types than \
MatrixAttrMixin or its subclasses')
        AliasedArrayAttributes.copy_into(self, into)
        into._rowpos = self._rowpos
        into._colpos = self._colpos
        into._rowpixelsize = self._rowpixelsize
        into._colpixelsize = self._colpixelsize
Exemple #3
0
 def __init__(self, **kwargs):
     ArithmeticBase.__init__(self)
     kwargs['normalnames'] = ['x', 'y', 'dy', 'dx']
     AliasedArrayAttributes.__init__(self, **kwargs)
Exemple #4
0
 def __init__(self, **kwargs):
     kwargs['normalnames'] = ['A', 'dA']
     AliasedArrayAttributes.__init__(self, **kwargs)