def extinction_factor(self, keV, theta_0, order=1): """Wrapper for Physics.extinction_factor function""" if self.microthick==0.: return 1. else: # This part can be speed up by using Xtal facilities!!! return Physics.extinction_factor(keV, self.Z, self.hkls[order], self.microthick, theta_0)
def extinction_factor(keVB, theta_0): return Physics.extinction_factor(keVB, Z, hkl, microthick, theta_0)