Module Import alias Import alias Import alias Import alias Import alias Import alias identifier ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias alias Expr Call NameLoad Str ImportFrom alias alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num NameLoad kwarg body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr BinOpMod Str NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr For NameStore TupleLoad Str Str Str body For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict attr body If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler body Pass Expr Call NameLoad NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore TupleLoad ListLoad ListLoad TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore BinOpDiv AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad ListComp CompareIn Str SubscriptLoad NameLoad Index Num comprehension NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Assign AttributeStore NameLoad attr NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad BinOpMod Str BinOpAdd NameLoad Num NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore BinOpDiv NameLoad NameLoad Assign NameStore Call NameLoad NameLoad BinOpMod Str BinOpAdd NameLoad Num NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpDiv NameLoad NameLoad orelse Assign NameStore BinOpMult Num NameLoad If NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad BinOpMult NameLoad Num NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore NameStore NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareIn Str NameLoad CompareNotIn Str NameLoad CompareNotIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpSub Call NameLoad NameLoad Num Assign NameStore BinOpMult NameLoad Num Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpDiv BinOpMult NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad If Call NameLoad Call AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Index Num Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad If CompareNotEq NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad BinOpAdd SubscriptLoad NameLoad Index NameLoad NameLoad If CompareNotEq NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpAdd SubscriptLoad NameLoad Index NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If UnaryOpNot Call NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad NameLoad body Expr Call NameLoad NameLoad BinOpMod Str BinOpAdd NameLoad Num SubscriptLoad NameLoad Index NameLoad Expr Call NameLoad NameLoad BinOpMod Str BinOpAdd NameLoad Num SubscriptLoad NameLoad Index NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list NameLoad Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad Str attr Return BoolOpAnd Call AttributeLoad NameLoad attr Str CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad body Expr Str If UnaryOpNot Call NameLoad NameLoad body Print BinOpMod Str NameLoad Return Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler body Print TupleLoad Str NameLoad Return For NameStore TupleLoad Str Str Str Str Str Str Str Str body If Call NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr BinOpMult AttributeLoad NameLoad attr Num If Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Str If CompareLt AttributeLoad NameLoad attr Num body Assign NameStore Str Assign NameStore Dict Str Str AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Str For NameStore AttributeLoad NameLoad attr body If Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad body Assign NameStore NameLoad Break If CompareIs NameLoad NameLoad body Print BinOpMod Str TupleLoad NameLoad NameLoad Return Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Assign NameStore BinOpAdd NameLoad Str If CompareIn NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpDiv AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore ListLoad Str Str Str Str Str Str Str Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad If Call NameLoad NameLoad Str body AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad If Call NameLoad NameLoad Str body AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad BinOpMod Str AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad NameLoad NameLoad Str Str NameLoad Assign NameStore Str For NameStore Call NameLoad NameLoad body Assign NameStore BinOpMod NameLoad TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Slice If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Print BinOpMod Str TupleLoad NameLoad NameLoad NameLoad handlers ExceptHandler body Print BinOpMod Str NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Return TupleLoad Str Dict Str Str NameLoad NameLoad decorator_list
N/A N/A os N/A sys N/A copy N/A time N/A gc N/A numpy np larch Group ValidateLarchPlugin use_plugin_path larch.utils OrderedDict larch_plugins.io XDIFile XDIFileException iso8601_time N/A N/A use_plugin_path xrfmap xsp3_hdf5 XSPRESS3_TAUS estimate_icr read_gsexdi N/A N/A fname _larch nmca bad N/A None 4 None kws N/A N/A Read GSE XDI Scan Data to larch group,
    summing ROI data for MCAs and apply deadtime corrections
     N/A group N/A N/A N/A _larch symtable create_group N/A N/A group __name__ N/A GSE XDI Data file %s fname N/A xdi N/A XDIFile N/A str fname N/A N/A group _xdi xdi N/A N/A group filename fname N/A N/A group npts N/A xdi npts N/A N/A group bad_channels bad N/A N/A group dtc_taus XSPRESS3_TAUS N/A N/A N/A N/A _larch symtable has_symbol _sys.gsecars.xspress3_taus N/A N/A N/A group dtc_taus N/A N/A N/A N/A _larch symtable _sys gsecars xspress3_taus N/A family N/A scan mono facility N/A N/A N/A key val N/A N/A N/A N/A N/A xdi attrs get family N/A items N/A N/A N/A || val N/A N/A N/A val addr N/A N/A val split || N/A N/A N/A val N/A float val N/A N/A N/A N/A N/A N/A setattr group N/A %s_%s N/A family key val N/A N/A ocrs icrs N/A N/A N/A N/A N/A N/A ctime N/A xdi CountTime N/A N/A N/A AttributeError N/A N/A ctime N/A N/A xdi TSCALER 50000000.0 N/A is_xspress3 N/A any N/A N/A 13QX4 N/A a N/A 1 N/A a N/A N/A N/A N/A xdi attrs N/A column items N/A N/A group with_xspress3 is_xspress3 N/A i N/A range nmca N/A N/A ocr N/A getattr xdi N/A OutputCounts_mca%i N/A i 1 None N/A N/A ocr None N/A N/A ocr ctime N/A ocr N/A ocr ctime N/A icr N/A getattr xdi N/A InputCounts_mca%i N/A i 1 None N/A N/A icr None N/A N/A icr N/A icr ctime N/A N/A icr N/A 1.0 ocr N/A is_xspress3 N/A N/A tau N/A N/A group dtc_taus N/A i N/A icr N/A estimate_icr N/A ocr 1.0 tau niter 7 N/A N/A N/A ocrs append ocr N/A N/A N/A icrs append icr N/A labels N/A N/A sums N/A OrderedDict N/A N/A i arrname N/A enumerate N/A xdi array_labels N/A N/A dat N/A getattr xdi arrname N/A aname sumname rawname N/A N/A arrname lower N/A N/A N/A _mca aname N/A outputcounts aname N/A clock aname N/A N/A N/A sumname imca N/A N/A sumname split _mca N/A imca N/A N/A int imca 1 N/A datraw N/A dat 1.0 N/A rawname N/A sumname _nodtc N/A dat N/A N/A dat N/A icrs N/A imca N/A ocrs N/A imca N/A N/A any N/A N/A np isnan dat N/A N/A nan_pts N/A N/A N/A np where N/A N/A np isnan dat N/A 0 N/A N/A dat N/A nan_pts N/A datraw N/A nan_pts N/A N/A setattr group aname dat N/A N/A sumname labels N/A N/A N/A N/A labels append sumname N/A N/A sums N/A sumname dat N/A N/A rawname sumname N/A N/A N/A sums N/A rawname datraw N/A N/A rawname labels N/A N/A N/A N/A labels append rawname N/A N/A N/A sums N/A sumname N/A N/A sums N/A sumname dat N/A N/A rawname sumname N/A N/A N/A sums N/A rawname N/A N/A sums N/A rawname datraw N/A N/A name dat N/A N/A sums items N/A N/A N/A N/A hasattr group name N/A N/A N/A setattr group name dat N/A arrname N/A xdi array_labels N/A N/A sname N/A N/A arrname lower N/A N/A sname labels N/A N/A N/A N/A labels append sname N/A imca N/A range nmca N/A N/A N/A setattr group N/A ocr_mca%i N/A imca 1 N/A ocrs N/A imca N/A N/A setattr group N/A icr_mca%i N/A imca 1 N/A icrs N/A imca N/A N/A group array_labels labels N/A group N/A ValidateLarchPlugin N/A DTC_header # XDI/1.0  GSE/1.0
# Beamline.name:  13-ID-E, GSECARS
# Monochromator.name:  %(mono_cut)s, LN2 Cooled
# Monochromator.dspacing:  %(mono_dspace)s
# Facility.name: APS
# Facility.xray_source: 3.6 cm undulator
# Detectors.i0:  20cm ion chamber, He
# Detectors.ifluor:  Si SDD Vortex ME-4, 4 elements
# Detectors.ifluor_electronics:  Quantum Xspress3 3.1.10
# Column.1: energy eV
# Column.2: mufluor
# Column.3: i0
# Column.4: ifluor (corrected for deadtime)
# Column.5: ifluor_raw (not corrected) is_GSEXDI N/A N/A filename N/A N/A N/A test if file is GSE XDI data file
    reads only the first line of file
     N/A line1 N/A N/A N/A open filename r readline N/A N/A N/A N/A line1 startswith #XDI/1 N/A Epics StepScan File line1 N/A gsexdi_deadtime_correct N/A N/A fname channelname subdir bad _larch N/A DT_Corrected None None N/A N/A convert GSE XDI fluorescence XAFS scans to dead time corrected files N/A N/A N/A is_GSEXDI fname N/A N/A N/A '%s' is not a GSE XDI scan file
 fname N/A N/A out N/A Group N/A N/A out orig_filename fname N/A N/A N/A xdi N/A read_gsexdi fname bad bad _larch _larch N/A N/A N/A N/A N/A Could not read XDI file  fname N/A N/A attr N/A energy i0 i1 i2 tscaler counttime scan_start_time scan_end_time N/A N/A N/A hasattr xdi attr N/A N/A N/A setattr out attr N/A getattr xdi attr N/A N/A N/A hasattr out counttime N/A N/A N/A out counttime N/A N/A xdi tscaler 2e-08 N/A N/A hasattr xdi energy_readback N/A N/A N/A out energy N/A xdi energy_readback N/A mono_cut Si(111) N/A N/A N/A xdi mono_dspacing 2 N/A N/A mono_cut Si(311) N/A header_args N/A mono_dspace mono_cut N/A xdi mono_dspacing mono_cut N/A arrname None N/A channelname N/A N/A N/A N/A channelname lower replace _ N/A arr N/A xdi array_labels N/A N/A N/A N/A N/A N/A arr lower startswith channelname N/A N/A arrname arr N/A N/A N/A arrname None N/A N/A N/A Cannot find Channel %s in file %s  N/A channelname fname N/A N/A N/A out fl_corr N/A getattr xdi arrname N/A N/A out fl_raw N/A getattr xdi arrname N/A arrname_raw N/A arrname _nodtc N/A N/A arrname_raw N/A xdi array_labels N/A N/A N/A out fl_raw N/A getattr xdi arrname_raw N/A N/A out mufluor N/A N/A out fl_corr N/A out i0 N/A npts N/A len N/A out energy N/A ncol 6 N/A arrlabel N/A #  energy   mufluor   i0    fluor_dtc  fluor_raw  counttime N/A header N/A DTC_header header_args N/A buff N/A N/A N/A l strip N/A l N/A N/A header split N/A N/A has_i1 has_i2 N/A False False N/A N/A hasattr out i1 N/A N/A ncol 1 N/A N/A N/A buff append N/A # Column.%i: itrans  ncol N/A N/A N/A arrlabel append  itrans  N/A has_i1 True N/A N/A hasattr out i2 N/A N/A ncol 1 N/A N/A N/A buff append N/A # Column.%i: irefer  ncol N/A N/A N/A arrlabel append  irefer  N/A has_i2 True N/A arrlabel N/A N/A join arrlabel N/A N/A N/A buff extend N/A N/A # Scan.start_time: %s N/A out scan_start_time # /// N/A # summed %s fluorescence data from %s N/A channelname fname # Dead-time correction applied #--------------------------------- arrlabel N/A fmt    %11.3f %15.8f %14.3f %16.5f %14.2f %14.3f N/A i N/A range npts N/A N/A dline N/A fmt N/A N/A N/A out energy N/A i N/A N/A out mufluor N/A i N/A N/A out i0 N/A i N/A N/A out fl_corr N/A i N/A N/A out fl_raw N/A i N/A N/A out counttime N/A i N/A has_i1 N/A N/A dline N/A %s %14.3f N/A dline N/A N/A out i1 N/A i N/A has_i2 N/A N/A dline N/A %s %14.3f N/A dline N/A N/A out i2 N/A i N/A N/A N/A buff append dline N/A ofile N/A fname N/A N/A N/A N/A ofile startswith .. N/A N/A ofile N/A ofile N/A 3 N/A ofile N/A N/A N/A ofile replace . _ .dat N/A ofile N/A N/A N/A os path join subdir ofile N/A N/A N/A N/A N/A os path exists subdir N/A N/A N/A N/A os mkdir subdir N/A N/A N/A fout N/A open ofile w N/A N/A N/A fout write N/A N/A join buff N/A N/A N/A fout close N/A N/A wrote %s, npts=%i, channel='%s' N/A ofile npts channelname N/A N/A N/A N/A N/A could not open / write to output file %s ofile N/A out N/A ValidateLarchPlugin registerLarchPlugin N/A N/A N/A N/A N/A N/A _io N/A read_gsexdi gsexdi_deadtime_correct read_gsexdi gsexdi_deadtime_correct N/A