jgliss / pyplis

Python toolbox for the analysis of UV SO2 camera data
GNU General Public License v3.0
7 stars 5 forks source link

Bug Fix: Setting of calibration coefficients #10

Closed solvejgdinger closed 5 years ago

solvejgdinger commented 5 years ago

When initializing a CalibData object with the calib_coeffs argument, they were not set. self._calib_coeffs is initialized as None, so len(self._calib_coeffs) will throw an error. However inside init the setting of the self.calib_coeffs is inside an try-except block and the error goes unnoticed. The if statement should fix that but the question remains if the warning is necessary and/or also if an separte object should be avialble which only contains calibration results (which were e.g. obtained from other methods or dummy values for fast visualising of data).