Module Import alias identifier ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias alias alias ImportFrom alias Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str Num Num NameLoad body Expr Str If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad keyword TupleLoad Str Str keyword TupleLoad NameLoad keyword NameLoad keyword Str Assign NameStore BinOpAdd NameLoad BinOpMult Num NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpSub NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad Num BinOpMult Num Call NameLoad BinOpMult Call NameLoad BinOpSub SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num Num Assign NameStore BinOpAdd Num Call NameLoad BinOpDiv Call NameLoad NameLoad NameLoad Assign NameStore BinOpMult Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword Str keyword NameLoad Assign NameStore NameLoad If Call AttributeLoad Call AttributeLoad NameLoad attr attr Str body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad BinOpMult Call AttributeLoad NameLoad attr Call NameLoad NameLoad SubscriptLoad NameLoad Index Num Assign TupleStore NameStore NameStore Call NameLoad NameLoad Call NameLoad NameLoad Num NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore BinOpDiv BinOpMult SubscriptLoad NameLoad Slice NameLoad SubscriptLoad NameLoad Index BinOpSub NameLoad Num SubscriptLoad NameLoad Index BinOpSub NameLoad Num Assign NameStore Call NameLoad BinOpAdd NameLoad NameLoad NameLoad NameLoad keyword Str keyword NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Return TupleLoad NameLoad Dict Str NameLoad decorator_list
N/A N/A numpy np scipy.signal deconvolve larch ValidateLarchPlugin parse_group_args larch_plugins.math gaussian lorentzian _interp index_of index_nearest remove_dups larch_plugins.xafs set_xafsGroup N/A MODNAME _xafs xas_deconvolve N/A N/A energy norm group form esigma eshift _larch N/A None None gaussian 1.0 0.0 None N/A N/A XAS spectral deconvolution

    This function de-convolves a normalized mu(E) spectra with a
    peak shape, enhancing separation of XANES features.

    This can be unstable -- Use results with caution!

    Arguments
    ----------
    energy:   array of x-ray energies, in eV or group
    norm:     array of normalized mu(E)
    group:    output group
    form:     form of deconvolution function. One of
              'gaussian' (default) or 'lorentzian'
    esigma    energy sigma to pass to gaussian() or lorentzian()
              [in eV, default=1.0]
    eshift    energy shift to apply to result. [in eV, default=0]

    Returns
    -------
    None
       The array 'deconv' will be written to the output group.

    Notes
    -----
       Support See First Argument Group convention, requiring group
       members 'energy' and 'norm'
     N/A N/A _larch None N/A N/A N/A Warning cannot deconvolve -- larch broken? N/A N/A energy mu group N/A parse_group_args energy members N/A energy norm defaults N/A norm group group fcn_name xas_deconv N/A eshift N/A eshift N/A 0.5 esigma N/A en N/A remove_dups energy N/A en N/A en N/A en N/A 0 N/A estep N/A max 0.001 N/A 0.001 N/A int N/A N/A min N/A N/A en N/A 1 N/A en N/A -1 1000.0 N/A npts N/A 1 N/A int N/A N/A max en estep N/A x N/A N/A N/A np arange npts estep N/A y N/A _interp en mu x kind linear _larch _larch N/A kernel gaussian N/A N/A N/A N/A N/A form lower startswith lor N/A N/A kernel lorentzian N/A yext N/A N/A np concatenate N/A y N/A N/A N/A np arange N/A len y N/A y N/A -1 N/A N/A ret err N/A deconvolve yext N/A kernel x 0 esigma N/A nret N/A min N/A len x N/A len ret N/A ret N/A N/A N/A ret N/A nret N/A yext N/A N/A nret 1 N/A ret N/A N/A nret 1 N/A out N/A _interp N/A x eshift ret en kind linear _larch _larch N/A group N/A set_xafsGroup group _larch _larch N/A N/A group deconv out N/A ValidateLarchPlugin registerLarchPlugin N/A N/A N/A N/A N/A N/A MODNAME N/A xas_deconvolve xas_deconvolve N/A