twVolc / PyCamPermanent

Permanent PiCam (SO2) installation project software
GNU General Public License v3.0
1 stars 2 forks source link

`Error in calibration parameter fit plot: Fit residual is not available, please call fit_calib_data first` when DOAS-FOV search window is open #162

Open ubdbra001 opened 2 weeks ago

ubdbra001 commented 2 weeks ago

Produces error: Error in calibration parameter fit plot: Fit residual is not available, please call fit_calib_data first

This it is because these lines in update_plot() are being run when the figure is open: https://github.com/twVolc/PyCamPermanent/blob/8883aee6b58f18749564ea70eca1259cd04223d1/pycam/gui/figures_analysis.py#L3832-L3834

update_plot() is always called here because pyplis_worker.calib_pears is never not None: https://github.com/twVolc/PyCamPermanent/blob/8883aee6b58f18749564ea70eca1259cd04223d1/pycam/gui/figures_analysis.py#L3656-L3659