ergodicio / tsadar

The Thomson scattering diagnostic offers a method by which to infer plasma parameters such as n_e, T_e. This approach uses the form factor equations to estimate those plasma parameters by fitting to observed Thomson scattering spectra.
2 stars 2 forks source link

Issues with background type = "fit" #31

Closed krmcmillen closed 11 months ago

krmcmillen commented 1 year ago

Error inverse-thomson-scattering/inverse_thomson_scattering/evaluate_background.py", line 174, in get_lineout_bg :, BackgroundPixel - config["data"]["dpixel"] : BackgroundPixel + config["data"]["dpixel"] TypeError: unsupported operand type(s) for -: 'list' and 'int'

Possible Fix "/inverse_thomson_scattering/lineouts.py b/inverse_thomson_scattering/lineouts.py", line 29 From BackgroundPixel = [] To BackgroundPixel = 0

Error "/inverse-thomson-scattering/inverse_thomson_scattering/evaluate_background.py", line 103, in get_lineout_bg if config["data"]["background"]["show"]: KeyError: 'show'

Possible Fix add [data][background][show] to inputs.yaml or remove lines 103-106

almilder commented 11 months ago

This is now fixed on multi-species branch

almilder commented 11 months ago

Now merged in