Module Import alias Import alias Import alias identifier ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Global identifier If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad If CompareIs NameLoad NameLoad body Return NameLoad If CompareGt NameLoad Num body Print Str Return If BoolOpOr CompareIsNot NameLoad NameLoad BoolOpAnd CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If BoolOpAnd CompareIs NameLoad NameLoad CompareNotIn NameLoad TupleLoad NameLoad ListLoad body Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad BinOpMult NameLoad Num Assign NameStore Call AttributeLoad BinOpSub SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num attr Assign NameStore BinOpSub Call NameLoad NameLoad NameLoad Assign NameStore BinOpAdd Call NameLoad NameLoad NameLoad Assign NameStore BinOpAdd Num BinOpDiv Call NameLoad BinOpAdd BinOpSub NameLoad NameLoad BinOpMult NameLoad Num Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad BinOpDiv NameLoad NameLoad Assign NameStore BinOpDiv NameLoad Num Assign NameStore BinOpDiv BinOpDiv Num BinOpAdd Num BinOpPow BinOpDiv BinOpSub Call AttributeLoad NameLoad attr BinOpAdd BinOpMult Num NameLoad Num BinOpMult NameLoad Num NameLoad Num BinOpMult AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call BinOpMult NameLoad AttributeLoad NameLoad attr Assign NameStore Call BinOpMult NameLoad AttributeLoad NameLoad attr Assign NameStore Call BinOpMult NameLoad AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp NameLoad comprehension NameStore SubscriptLoad NameLoad Slice Assign NameStore Call AttributeLoad NameLoad attr ListComp NameLoad comprehension NameStore SubscriptLoad NameLoad Slice If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad Call NameLoad NameLoad NameLoad Slice NameLoad UnaryOpUSub NameLoad NameLoad Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad Call NameLoad NameLoad NameLoad Slice NameLoad UnaryOpUSub NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Return decorator_list FunctionDef arguments args defaults body Return TupleLoad NameLoad Dict Str NameLoad decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Assign TupleStore NameStore NameStore Call NameLoad Num NameLoad Print TupleLoad NameLoad NameLoad NameLoad
N/A N/A os N/A ctypes N/A numpy np scipy.signal convolve N/A larch larch ValidateLarchPlugin larch.larchlib get_dll larch_plugins.math as_ndarray larch_plugins.xray core_width atomic_number N/A MODNAME _xray N/A CLLIB None f1f2 N/A N/A z energies width edge _larch N/A None None None N/A N/A Return anomalous scattering factors f1, f2 from Cromer-Liberman

    Look-up and return f1, f2 for an element and array of energies
    from Cromer-Liberman (Cowan-Brennan implementation)

    Parameters
    ----------
    z:         atomic number of element
    energies:  array of x-ray energies (in eV)
    width:     width used to convolve values with lorentzian profile
    edge:      x-ray edge ('K', 'L3', etc) used to lookup energy
               width for convolution.

    Returns:
    ---------
    f1, f2:    anomalous scattering factors

     N/A CLLIB N/A N/A CLLIB None N/A N/A CLLIB N/A get_dll cldata N/A en N/A as_ndarray energies N/A N/A N/A isinstance z int N/A N/A z N/A atomic_number z _larch _larch N/A N/A z None N/A N/A None N/A N/A z 92 N/A N/A Cromer-Liberman data not available for Z>92 N/A N/A N/A N/A edge None N/A N/A width None N/A _larch None N/A N/A natwid N/A core_width element z edge edge _larch _larch N/A N/A N/A width None N/A natwid N/A None N/A N/A N/A width natwid N/A N/A width None N/A N/A e_extra N/A int N/A width 80.0 N/A estep N/A N/A N/A N/A en N/A 1 N/A en N/A -1 min N/A emin N/A N/A min en e_extra N/A emax N/A N/A max en e_extra N/A npts N/A 1 N/A N/A abs N/A N/A emax emin N/A estep 0.02 N/A abs estep N/A en N/A N/A np linspace emin emax npts N/A nk N/A int N/A e_extra estep N/A sig N/A width 2.0 N/A lor N/A N/A 1.0 N/A 1 N/A N/A N/A N/A N/A np arange N/A N/A 2 nk 1 N/A nk 1.0 sig 2 N/A N/A np pi sig N/A scale N/A N/A lor sum N/A npts N/A len en N/A p_z N/A N/A ctypes pointer N/A N/A ctypes c_int N/A int z N/A p_npts N/A N/A ctypes pointer N/A N/A ctypes c_int npts N/A p_en N/A N/A npts N/A ctypes c_double N/A p_f1 N/A N/A npts N/A ctypes c_double N/A p_f2 N/A N/A npts N/A ctypes c_double N/A i N/A range npts N/A N/A N/A p_en N/A i N/A en N/A i N/A nout N/A N/A CLLIB f1f2 p_z p_npts p_en p_f1 p_f2 N/A f1 N/A N/A np array N/A i N/A i N/A p_f1 N/A N/A f2 N/A N/A np array N/A i N/A i N/A p_f2 N/A N/A N/A width None N/A N/A f1 N/A N/A N/A np interp energies en N/A N/A convolve f1 lor N/A nk N/A nk scale N/A f2 N/A N/A N/A np interp energies en N/A N/A convolve f2 lor N/A nk N/A nk scale N/A N/A f1 f2 N/A ValidateLarchPlugin loren N/A N/A x cen sigma N/A 0 1 N/A N/A N/A registerLarchPlugin N/A N/A N/A N/A N/A N/A MODNAME N/A f1f2_cl f1f2 N/A N/A N/A __name__ __main__ N/A N/A en N/A N/A np linspace 8000 9200 51 N/A N/A f1 f2 N/A f1f2 29 en N/A N/A en f1 f2