Module Import alias identifier ImportFrom alias alias Import alias identifier Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Index Num Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Index Num Assign NameStore Call NameLoad keyword Str Assign NameStore Call NameLoad keyword Str Assign NameStore Call NameLoad keyword Str FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareLt NameLoad Call NameLoad NameLoad body Return Num Return Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr CompareLtE NameLoad NameLoad Index Num decorator_list Assign NameStore Call NameLoad NameLoad Num Assign NameStore Call NameLoad NameLoad Num Assign NameStore Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad keyword SubscriptLoad NameLoad Slice NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad NameLoad keyword SubscriptLoad NameLoad Slice NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad NameLoad keyword SubscriptLoad NameLoad Slice NameLoad NameLoad Assign NameStore BinOpAdd BinOpAdd NameLoad NameLoad NameLoad Assign NameStore BinOpAdd BinOpAdd NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Print Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr
N/A N/A numpy np lmfit.models GaussianModel ExponentialModel N/A matplotlib.pyplot plt N/A dat N/A N/A np loadtxt NIST_Gauss2.dat N/A x N/A dat N/A N/A N/A 1 N/A y N/A dat N/A N/A N/A 0 N/A exp_mod N/A ExponentialModel prefix exp_ N/A gauss1 N/A GaussianModel prefix g1_ N/A gauss2 N/A GaussianModel prefix g2_ index_of N/A N/A arrval value N/A N/A N/A return index of array *at or below* value  N/A N/A value N/A min arrval N/A N/A 0 N/A N/A max N/A N/A N/A np where N/A arrval value N/A 0 N/A N/A ix1 N/A index_of x 75 N/A ix2 N/A index_of x 135 N/A ix3 N/A index_of x 175 N/A pars1 N/A N/A exp_mod guess N/A y N/A ix1 x N/A x N/A ix1 N/A pars2 N/A N/A gauss1 guess N/A y N/A ix1 ix2 x N/A x N/A ix1 ix2 N/A pars3 N/A N/A gauss2 guess N/A y N/A ix2 ix3 x N/A x N/A ix2 ix3 N/A pars N/A N/A pars1 pars2 pars3 N/A mod N/A N/A gauss1 gauss2 exp_mod N/A out N/A N/A mod fit y pars x x N/A N/A N/A out fit_report min_correl 0.5 N/A N/A N/A plt plot x y N/A N/A N/A plt plot x N/A out init_fit k-- N/A N/A N/A plt plot x N/A out best_fit r- N/A N/A N/A plt show