Module Expr Str Import alias ImportFrom alias Import alias Import alias identifier Import alias Import alias identifier ImportFrom alias alias alias alias alias alias alias alias alias alias alias alias alias TryExcept body ImportFrom alias handlers ExceptHandler body Pass Import alias ImportFrom alias alias alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad TupleLoad Num Num NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Num Str keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Num Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword TupleLoad Num Num keyword Num keyword NameLoad Assign AttributeStore NameLoad attr ListLoad Expr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Assign TupleStore NameStore NameStore NameStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore SubscriptLoad BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr BinOpMult Str Num Slice Num Assign NameStore Dict Str Str NameLoad TupleLoad Num Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad BinOpMod Str BinOpMult Num NameLoad NameLoad Assign NameStore Call NameLoad NameLoad BinOpMod Str BinOpMult Num NameLoad NameLoad Assign NameStore Call NameLoad NameLoad BinOpMod Str BinOpMult Num NameLoad NameLoad Assign NameStore Call NameLoad NameLoad BinOpMod Str BinOpMult Num NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad keyword Str keyword TupleLoad Num Num keyword CompareLt NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword TupleLoad Num Num keyword Num keyword NameLoad Assign NameStore BinOpMult Num AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpMult Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Num keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword NameLoad keyword Num keyword TupleLoad Num Num Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword NameLoad keyword Num keyword TupleLoad Num Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str keyword TupleLoad Num Num keyword AttributeLoad NameLoad attr keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str keyword TupleLoad Num Num keyword AttributeLoad NameLoad attr keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str keyword TupleLoad Num Num keyword AttributeLoad NameLoad attr keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad BinOpAdd SubscriptLoad NameLoad Index Num Num BinOpAdd SubscriptLoad NameLoad Index Num Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign TupleStore NameStore NameStore TupleLoad ListLoad ListLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore AttributeLoad NameLoad attr body If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str BinOpMult Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str BinOpMult Num NameLoad Expr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Assign TupleStore NameStore NameStore NameStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign NameStore BinOpSub NameLoad NameLoad For TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore AttributeLoad NameLoad attr body If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str BinOpMult Num NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str BinOpMult Num NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str BinOpMult Num NameLoad Break Expr Call NameLoad NameLoad keyword SubscriptLoad NameLoad Index Num keyword SubscriptLoad NameLoad Index Num keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad BinOpAdd SubscriptLoad NameLoad Index Num Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Expr Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr If Call NameLoad AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults TupleLoad Num Num kwarg body Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Num keyword NameLoad keyword Str NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Num FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Str NameLoad keyword TupleLoad Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad NameLoad Num keyword NameLoad keyword Call NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad keyword NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Str keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword TupleLoad Num Num keyword Num keyword NameLoad Expr Call NameLoad Str Str keyword NameLoad Expr Call NameLoad Str Str Expr Call NameLoad Str Str keyword NameLoad Expr Call NameLoad Str Str Expr Call NameLoad Str Str keyword NameLoad Expr Call NameLoad Str Str Expr Call NameLoad Str Str keyword NameLoad Expr Call NameLoad Str Str Expr Call NameLoad Str Str keyword NameLoad Expr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword TupleLoad Num Num keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str keyword TupleLoad Num Num keyword AttributeLoad NameLoad attr keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad keyword Num orelse If CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad keyword Num orelse If CompareEq NameLoad Str body For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd CompareEq NameLoad Str CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad orelse If CompareEq NameLoad Str body For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore ListLoad Str Str Str Assign NameStore ListLoad Str Str Assign NameStore ListLoad Str Str Str Str Assign NameStore ListLoad Str Str Str Str Assign NameStore ListLoad Str Str Str Assign NameStore ListLoad Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam defaults TupleLoad Num Num kwarg body Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Num keyword NameLoad keyword Str NameLoad Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr Dict FunctionDef arguments args NameParam NameParam NameParam defaults body For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad BinOpMod Str NameLoad keyword CompareIn NameLoad NameLoad keyword Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list Assign NameStore Dict Str Str TupleLoad Num Num TupleLoad Num Num Num Assign NameStore Dict Str Str NameLoad NameLoad Assign AttributeStore NameLoad attr Dict Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword TupleLoad Num Num keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str keyword Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str keyword Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str keyword Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str keyword Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str keyword Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Dict Str Str Str Str Num Num Num TupleLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad NameLoad attr keyword NameLoad NameLoad keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad NameLoad attr keyword NameLoad NameLoad keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword TupleLoad Num Num keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str keyword TupleLoad Num Num keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad ListLoad kwarg body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad body Assign NameStore UnaryOpNot Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr SubscriptLoad Dict NameLoad NameLoad Num Num Index NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad ListLoad body If CompareIs NameLoad NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler body Pass If CompareIs NameLoad NameLoad body Assign NameStore NameLoad If BoolOpAnd CompareIn NameLoad NameLoad UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd CompareNotIn NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body Return Assign NameStore Call NameLoad NameLoad If NameLoad body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad orelse Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Assign NameStore ListLoad Str Str Assign NameStore ListLoad Assign NameStore ListLoad Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str Assign NameStore ListLoad Assign NameStore ListLoad Str Str Str Str Assign NameStore Num Assign NameStore Num decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults Num body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr UnaryOpUSub Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeStore NameLoad attr BinOpMod BinOpAdd AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad Num BinOpSub NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore BinOpSub Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd CompareEq NameLoad Num CompareLt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Num Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr CompareGt AttributeLoad NameLoad attr Num Index Num Return Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr CompareGt AttributeLoad NameLoad attr Num Index Num If BoolOpOr CompareLt Call NameLoad NameLoad Num CompareLt Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Num body Return Num Return BinOpDiv Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr decorator_list decorator_list
N/A N/A 
utilities for XRF display
 N/A copy functools partial N/A time N/A numpy np N/A wx N/A wx.lib.colourselect csel wxutils SimpleText FloatCtrl Choice Font pack Button Check HyperText HLine GridPanel CEN LEFT RIGHT N/A N/A wxmplot.colors hexcolor N/A N/A N/A N/A N/A larch larch_plugins.xrf xrf_background xrf_calib_fitrois xrf_calib_compute xrf_calib_apply CalibrationFrame N/A N/A wx Frame N/A __init__ N/A N/A self parent mca larch size callback N/A None N/A -1 -1 None N/A N/A N/A self mca mca N/A N/A self larch larch N/A N/A self callback callback N/A N/A N/A N/A wx Frame __init__ self parent -1 Calibrate MCA size size style N/A wx DEFAULT_FRAME_STYLE N/A N/A N/A self SetFont N/A Font 8 N/A panel N/A GridPanel self N/A N/A self calib_updated False N/A N/A N/A panel AddText Calibrate MCA Energy (Energies in eV) colour #880000 dcol 7 N/A N/A N/A panel AddText ROI newrow True style CEN N/A N/A N/A panel AddText Predicted style CEN N/A N/A N/A panel AddText Peaks with Current Calibration dcol 3 style CEN N/A N/A N/A panel AddText Peaks with Refined Calibration dcol 3 style CEN N/A N/A N/A panel AddText Name newrow True style CEN N/A N/A N/A panel AddText Energy style CEN N/A N/A N/A panel AddText Center style CEN N/A N/A N/A panel AddText Difference style CEN N/A N/A N/A panel AddText FWHM style CEN N/A N/A N/A panel AddText Center style CEN N/A N/A N/A panel AddText Difference style CEN N/A N/A N/A panel AddText FWHM style CEN N/A N/A N/A panel AddText Use?  style CEN N/A N/A N/A panel Add N/A HLine panel size N/A 700 3 dcol 9 newrow True N/A N/A self wids N/A N/A N/A xrf_calib_fitrois mca _larch N/A self larch N/A roi N/A N/A self mca rois N/A N/A N/A eknown ecen fwhm amp fit N/A N/A mca init_calib N/A N/A roi name N/A diff N/A ecen eknown N/A name N/A N/A N/A N/A roi name N/A 10 N/A 10 N/A opts N/A style size CEN N/A 75 -1 N/A w_name N/A SimpleText panel name opts N/A w_pred N/A SimpleText panel N/A % .1f N/A 1000 eknown opts N/A w_ccen N/A SimpleText panel N/A % .1f N/A 1000 ecen opts N/A w_cdif N/A SimpleText panel N/A % .1f N/A 1000 diff opts N/A w_cwid N/A SimpleText panel N/A % .1f N/A 1000 fwhm opts N/A w_ncen N/A SimpleText panel ----- opts N/A w_ndif N/A SimpleText panel ----- opts N/A w_nwid N/A SimpleText panel ----- opts N/A w_use N/A Check panel label use? size N/A 40 -1 default N/A fwhm 0.5 N/A N/A N/A panel Add w_name style LEFT newrow True N/A N/A N/A panel AddMany N/A w_pred w_ccen w_cdif w_cwid w_ncen w_ndif w_nwid w_use N/A N/A N/A N/A self wids append N/A N/A roi name eknown ecen w_ncen w_ndif w_nwid w_use N/A N/A N/A panel Add N/A HLine panel size N/A 700 3 dcol 9 newrow True N/A offset N/A 1000.0 N/A N/A self mca offset N/A slope N/A 1000.0 N/A N/A self mca slope N/A N/A N/A panel AddText Current Calibration: dcol 2 newrow True N/A N/A N/A panel AddText offset(eV): N/A N/A N/A panel AddText N/A %.3f offset dcol 1 style RIGHT N/A N/A N/A panel AddText slope(eV/chan): N/A N/A N/A panel AddText N/A %.3f slope dcol 1 style RIGHT N/A N/A N/A panel AddText Refined Calibration: dcol 2 newrow True N/A N/A self new_offset N/A FloatCtrl panel value offset precision 3 size N/A 80 -1 N/A N/A self new_slope N/A FloatCtrl panel value slope precision 3 size N/A 80 -1 N/A N/A N/A panel AddText offset(eV): N/A N/A N/A panel Add N/A self new_offset dcol 1 style RIGHT N/A N/A N/A panel AddText slope(eV/chan): N/A N/A N/A panel Add N/A self new_slope dcol 1 style RIGHT N/A N/A N/A panel Add N/A Button panel Compute Calibration size N/A 125 -1 action N/A self onCalibrate dcol 2 newrow True N/A N/A N/A panel Add N/A Button panel Use New Calibration size N/A 125 -1 action N/A self onUseCalib dcol 2 style RIGHT N/A N/A N/A panel Add N/A Button panel Done size N/A 125 -1 action N/A self onClose dcol 2 style RIGHT N/A N/A N/A panel pack N/A a N/A N/A panel GetBestSize N/A N/A N/A self SetSize N/A N/A N/A a N/A 0 25 N/A N/A a N/A 1 50 N/A N/A N/A self Show N/A N/A N/A self Raise N/A onCalibrate N/A N/A self event N/A None N/A N/A N/A x y N/A N/A N/A N/A mca N/A self mca N/A old_calib N/A N/A mca offset N/A mca slope N/A init_calib N/A N/A copy deepcopy N/A mca init_calib N/A N/A roiname eknown ecen w_ncen w_ndif w_nwid w_use N/A self wids N/A N/A N/A N/A N/A w_use IsChecked N/A N/A N/A N/A N/A mca init_calib pop roiname N/A N/A xrf_calib_compute mca apply True _larch N/A self larch N/A N/A offset slope N/A mca new_calib N/A N/A self calib_updated True N/A N/A N/A N/A self new_offset SetValue N/A % .3f N/A 1000 offset N/A N/A N/A N/A self new_slope SetValue N/A % .3f N/A 1000 slope N/A N/A xrf_calib_fitrois mca _larch N/A self larch N/A roi N/A N/A self mca rois N/A N/A N/A eknown ecen fwhm amp fit N/A N/A mca init_calib N/A N/A roi name N/A diff N/A ecen eknown N/A N/A roiname eknown ocen w_ncen w_ndif w_nwid w_use N/A self wids N/A N/A N/A roiname N/A roi name N/A N/A N/A N/A w_ncen SetLabel N/A %.1f N/A 1000 ecen N/A N/A N/A w_ndif SetLabel N/A % .1f N/A 1000 diff N/A N/A N/A w_nwid SetLabel N/A %.1f N/A 1000 fwhm N/A N/A N/A xrf_calib_apply mca offset N/A old_calib N/A 0 slope N/A old_calib N/A 1 _larch N/A self larch N/A N/A mca init_calib init_calib N/A tsize N/A N/A self GetSize N/A N/A N/A self SetSize N/A N/A N/A tsize N/A 0 1 N/A tsize N/A 1 N/A N/A N/A self SetSize N/A N/A tsize N/A 0 N/A tsize N/A 1 N/A onUseCalib N/A N/A self event N/A None N/A N/A mca N/A self mca N/A offset N/A float N/A N/A N/A self new_offset GetValue N/A slope N/A float N/A N/A N/A self new_slope GetValue N/A N/A mca new_calib N/A offset slope N/A N/A xrf_calib_apply mca offset offset slope slope _larch N/A self larch N/A N/A hasattr N/A self callback __call__ N/A N/A N/A N/A self callback offset slope mca mca N/A N/A N/A self Destroy N/A onClose N/A N/A self event N/A None N/A N/A N/A N/A self Destroy N/A N/A ColorsFrame N/A N/A wx Frame N/A N/A settings frame for XRFDisplay __init__ N/A N/A self parent size N/A N/A 400 300 kws N/A N/A N/A self parent parent N/A conf N/A parent conf N/A N/A kws N/A style N/A wx DEFAULT_FRAME_STYLE N/A N/A N/A N/A wx Frame __init__ self parent -1 size size title XRF Color Settings kws N/A panel N/A GridPanel self N/A N/A N/A panel SetFont N/A Font 11 add_color N/A N/A panel name N/A N/A N/A cval N/A hexcolor N/A getattr conf name N/A c N/A N/A csel ColourSelect panel -1 cval size N/A 35 25 N/A N/A N/A c Bind N/A csel EVT_COLOURSELECT N/A partial N/A self onColor item name N/A c N/A N/A SX 130 scolor N/A N/A txt attr N/A kws N/A N/A N/A N/A panel AddText txt size N/A SX -1 style LEFT font N/A Font 11 kws N/A N/A N/A panel Add N/A add_color panel attr style LEFT N/A N/A N/A N/A panel AddText     XRF Display Colors dcol 4 colour #880000 N/A N/A N/A panel Add N/A HLine panel size N/A 400 3 dcol 4 newrow True N/A N/A scolor  Main Spectra: spectra_color newrow True N/A N/A scolor  Background Spectra: spectra2_color N/A N/A scolor  ROIs: roi_color newrow True N/A N/A scolor  ROI Fill: roi_fillcolor N/A N/A scolor  Cursor: marker_color newrow True N/A N/A scolor  XRF Background: bgr_color N/A N/A scolor  Major X-ray Lines: major_elinecolor newrow True N/A N/A scolor  Minor X-ray Lines: minor_elinecolor N/A N/A scolor  Selected X-ray Line: emph_elinecolor newrow True N/A N/A scolor  Held  X-ray Lines: hold_elinecolor N/A N/A N/A panel Add N/A HLine panel size N/A 400 3 dcol 4 newrow True N/A N/A N/A panel Add N/A Button panel Done size N/A 80 -1 action N/A self onDone dcol 2 newrow True N/A N/A N/A panel pack N/A N/A N/A self SetMinSize N/A N/A panel GetBestSize N/A N/A N/A self Show N/A N/A N/A self Raise N/A onColor N/A N/A self event item N/A None None N/A N/A color N/A hexcolor N/A N/A event GetValue N/A N/A setattr N/A N/A self parent conf item color N/A N/A item spectra_color N/A N/A N/A N/A N/A N/A N/A self parent panel conf set_trace_color color trace 0 N/A N/A N/A item roi_color N/A N/A N/A N/A N/A N/A N/A self parent panel conf set_trace_color color trace 1 N/A N/A N/A item marker_color N/A N/A lmark N/A N/A self parent cursor_markers N/A N/A N/A lmark None N/A N/A N/A N/A lmark set_color color N/A N/A N/A N/A item roi_fillcolor N/A N/A N/A self parent roi_patch None N/A N/A N/A N/A N/A N/A self parent roi_patch set_color color N/A N/A N/A item major_elinecolor N/A N/A l N/A N/A self parent major_markers N/A N/A N/A N/A l set_color color N/A N/A N/A item minor_elinecolor N/A N/A l N/A N/A self parent minor_markers N/A N/A N/A N/A l set_color color N/A N/A N/A item hold_elinecolor N/A N/A l N/A N/A self parent hold_markers N/A N/A N/A N/A l set_color color N/A N/A N/A N/A N/A N/A self parent panel canvas draw N/A N/A N/A N/A N/A self parent panel Refresh N/A onDone N/A N/A self event N/A None N/A N/A N/A N/A self Destroy N/A N/A XrayLinesFrame N/A N/A wx Frame N/A N/A settings frame for XRFDisplay N/A k1lines N/A Ka1 Ka2 Kb1 N/A k2lines N/A Kb2 Kb3 N/A l1lines N/A La1 Lb1 Lb3 Lb4 N/A l2lines N/A La2 Ll Ln Lb2,15 N/A l3lines N/A Lg1 Lg2 Lg3 N/A mlines N/A Ma Mb Mg Mz __init__ N/A N/A self parent size N/A N/A 475 325 kws N/A N/A N/A self parent parent N/A conf N/A parent conf N/A N/A kws N/A style N/A wx DEFAULT_FRAME_STYLE N/A N/A N/A N/A wx Frame __init__ self parent -1 size size title XRF Line Selection kws N/A panel N/A GridPanel self N/A N/A self checkbox N/A add_elines N/A N/A panel lines checked N/A N/A N/A i lines N/A N/A cb N/A Check panel N/A %s  i default N/A i checked action N/A partial N/A self onLine label i lines checked N/A N/A N/A self checkbox N/A i cb N/A N/A N/A panel Add cb style LEFT N/A N/A hopts N/A size bgcolour N/A 125 -1 N/A 250 250 200 N/A labopts N/A newrow style True LEFT N/A N/A self linedata N/A Major K Lines: Minor K Lines: Major L Lines: Minor L Lines: Major M Lines: N/A self k1lines N/A self k2lines N/A self l1lines N/A N/A self l2lines N/A self l3lines N/A self mlines N/A N/A N/A panel AddText  Select X-ray Emission Lines dcol 4 colour #880000 N/A N/A N/A panel Add N/A HLine panel size N/A 450 3 dcol 5 newrow True N/A N/A N/A panel Add N/A HyperText panel Major K Lines: action N/A partial N/A self ToggleLines lines N/A conf K_major hopts labopts N/A N/A add_elines panel N/A self k1lines N/A conf K_major N/A N/A N/A panel Add N/A HyperText panel Minor K Lines: action N/A partial N/A self ToggleLines lines N/A conf K_minor hopts labopts N/A N/A add_elines panel N/A self k2lines N/A conf K_minor N/A N/A N/A panel Add N/A HyperText panel Major L Lines: action N/A partial N/A self ToggleLines lines N/A conf L_major hopts labopts N/A N/A add_elines panel N/A self l1lines N/A conf L_major N/A N/A N/A panel Add N/A HyperText panel Minor L Lines: action N/A partial N/A self ToggleLines lines N/A conf L_minor hopts labopts N/A N/A add_elines panel N/A self l2lines N/A conf L_minor N/A N/A N/A panel AddText labopts N/A N/A add_elines panel N/A self l3lines N/A conf L_minor N/A N/A N/A panel Add N/A HyperText panel Major M Lines: action N/A partial N/A self ToggleLines lines N/A conf M_major hopts labopts N/A N/A add_elines panel N/A self mlines N/A conf M_major N/A N/A N/A panel AddText Energy Range (keV):  labopts N/A fopts N/A minval maxval precision size 0 1000 2 N/A 75 -1 N/A N/A N/A panel Add N/A FloatCtrl panel value N/A conf e_min action N/A partial N/A self onErange is_max False fopts dcol 2 style LEFT N/A N/A N/A panel AddText  :  N/A N/A N/A panel Add N/A FloatCtrl panel value N/A conf e_max action N/A partial N/A self onErange is_max True fopts dcol 2 style LEFT N/A N/A N/A panel Add N/A HLine panel size N/A 450 3 dcol 5 newrow True N/A N/A N/A panel Add N/A Button panel Done size N/A 80 -1 action N/A self onDone newrow True style LEFT N/A N/A N/A panel pack N/A N/A N/A self Show N/A N/A N/A self Raise N/A ToggleLines N/A N/A self label event lines N/A None None N/A kws N/A N/A N/A N/A event leftIsDown N/A N/A N/A N/A N/A self parent Freeze N/A line N/A N/A N/A self linedata get label N/A N/A N/A check N/A N/A N/A N/A N/A self checkbox N/A line IsChecked N/A N/A N/A N/A N/A self checkbox N/A line SetValue N/A N/A True False 1 0 N/A check N/A N/A N/A self onLine checked check label line lines lines N/A N/A N/A N/A self parent Thaw N/A onLine N/A N/A self event checked label lines N/A None None None N/A N/A N/A N/A checked None N/A N/A N/A N/A checked N/A N/A event IsChecked N/A N/A N/A N/A N/A N/A checked None N/A N/A checked False N/A N/A N/A label lines N/A checked N/A N/A N/A N/A lines remove label N/A N/A N/A N/A label lines checked N/A N/A N/A N/A lines append label N/A N/A N/A N/A self parent selected_elem None N/A N/A N/A N/A N/A self parent onShowLines elem N/A N/A self parent selected_elem N/A onErange N/A N/A self event value is_max N/A None None True N/A N/A N/A value None N/A N/A N/A val N/A float value N/A is_max N/A N/A N/A N/A N/A self parent conf e_max val N/A N/A N/A N/A N/A self parent conf e_min val N/A N/A N/A N/A self parent selected_elem None N/A N/A N/A N/A N/A self parent onShowLines elem N/A N/A self parent selected_elem N/A onDone N/A N/A self event N/A None N/A N/A N/A N/A self Destroy N/A N/A XRFDisplayConfig N/A N/A N/A emph_elinecolor #444444 N/A major_elinecolor #DAD8CA N/A minor_elinecolor #F4DAC0 N/A hold_elinecolor #CAC8DA N/A marker_color #77BB99 N/A roi_fillcolor #F8F0BA N/A roi_color #AA0000 N/A spectra_color #0000AA N/A spectra2_color #00DD00 N/A bgr_color #000000 N/A K_major N/A Ka1 Ka2 Kb1 N/A K_minor N/A Kb3 Kb2 N/A K_minor N/A N/A L_major N/A La1 Lb1 Lb3 Lb4 N/A L_minor N/A Ln Ll Lb2,15 Lg2 Lg3 Lg1 La2 N/A L_minor N/A N/A M_major N/A Ma Mb Mg Mz N/A e_min 1.0 N/A e_max 30.0 N/A ROI_Averager N/A N/A N/A ROI averager (over a fixed number of event samples)
       to give a rolling average of 'recent ROI values'

       roi_buff = ROI_Averager('13SDD1:mca1.R12',  nsamples=11)
       while True:
            print( roi_buff.average())

       typically, the ROIs update at a fixed 10 Hz, so 11 samples
       gives the ROI intensity integrated over the previous second

       using a ring buffer using numpy arrays
     __init__ N/A N/A self nsamples N/A 11 N/A N/A N/A N/A self clear nsamples nsamples N/A clear N/A N/A self nsamples N/A 11 N/A N/A N/A self nsamples nsamples N/A N/A self index -1 N/A N/A self lastval 0 N/A N/A self toffset N/A N/A time time N/A N/A self data N/A N/A np zeros N/A self nsamples dtype N/A np float32 N/A N/A self times N/A N/A N/A np ones N/A self nsamples dtype N/A np float32 N/A append N/A N/A self value N/A N/A N/A adds value to ring buffer N/A idx N/A self index N/A N/A N/A self index 1 N/A N/A self data size N/A N/A N/A self data N/A idx N/A max 0 N/A value N/A self lastval N/A N/A self lastval value N/A dt N/A N/A N/A time time N/A self toffset N/A N/A N/A idx 0 N/A N/A max N/A self times 0 N/A N/A dt 0 N/A N/A N/A self times N/A idx dt N/A update N/A N/A self value N/A N/A N/A N/A N/A self append value N/A get_mean N/A N/A self N/A N/A N/A valid N/A N/A N/A np where N/A N/A self times 0 N/A 0 N/A N/A N/A N/A N/A self data N/A valid mean N/A get_cps N/A N/A self N/A N/A N/A valid N/A N/A N/A np where N/A N/A self times 0 N/A 0 N/A N/A N/A N/A len valid 1 N/A N/A N/A N/A N/A self times N/A valid ptp 0.5 N/A N/A 0 N/A N/A N/A N/A N/A N/A self data N/A valid sum N/A N/A N/A N/A self times N/A valid ptp N/A N/A