コード例 #1
0
ファイル: dataset.py プロジェクト: awacha/sastool
    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
コード例 #2
0
ファイル: dataset.py プロジェクト: awacha/sastool
    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