def tearDown(self):
     ScatteringFactorTable._deregisterType('localtable')
     return
예제 #2
0
 def tearDown(self):
     ScatteringFactorTable._deregisterType('localtable')
     return
예제 #3
0
        return copy.copy(self)

    def type(self):
        return "xrayneutral"

    def radiationType(self):
        return "XNEUTRAL"

    def _sfwater(self, q):
        fh = self.__sftxray._standardLookup("H", q)
        fo = self.__sftxray._standardLookup("O", q)
        return 2 * fh + fo

    def _standardLookup(self, smbl, q):
        smblbare = smbl.rstrip('+-012345678')
        if smblbare == 'D':
            rv = self._standardLookup('H', q)
        elif smblbare == 'Wa':
            rv = self._sfwater(q)
        else:
            rv = self.__sftxray._standardLookup(smblbare, q)
        return rv


# end of class SFTXrayNeutral

_sftb = SFTXrayNeutral()
ScatteringFactorTable._deregisterType(_sftb.type())
_sftb._registerThisType()
del _sftb