def create_fp_old(wavelength): return sl.FormFactor(wavelength, __lookup_fp_old__)
def create_fw(wavelength): return sl.FormFactor(wavelength, __lookup_fw__)
'/databases/f1f2_cxro/') def create_fp(wavelength): return sl.FormFactor(wavelength, __lookup_fp__) def create_fp_old(wavelength): return sl.FormFactor(wavelength, __lookup_fp_old__) fp = create_fp(1.54) fp_old = create_fp_old(1.54) # The total angle dependent form factor __lookup_f__ = sl.create_f_lookup(__lookup_fp__, __f0_dict__) f = sl.FormFactor(1.54, __lookup_f__) # The electrondensity of an atom __lookup_rho__ = sl.create_rho_lookup(__lookup_fp__, __rho0_dict__,\ __f0_dict__) rho = sl.FormFactor(1.54, __lookup_rho__) # The coherent scattering length for neutrons __bc_dict__ = sl.load_bdabax(__MODULE_DIR__ + '/databases/DeBe_NeutronNews.dat') bc = sl.ScatteringLength(__bc_dict__) #print 'Loading atomic weights' __w_dict__ = sl.load_atomic_weights_dabax(__MODULE_DIR__ +\ '/databases/AtomicWeights.dat') #print 'Making bw dict' __bw_dict__ = sl.create_scatt_weight(__bc_dict__, __w_dict__) #print 'Making bw scattering lengths' bw = sl.ScatteringLength(__bw_dict__)