Commit 2130052b authored by Monica Rainer's avatar Monica Rainer
Browse files

Corrected bug in varie.py

parent 9052ca74
backup backup
calibrations calibrations
git_howto.txt
gofio_latest gofio_latest
gofio_latest.tar gofio_latest.tar
reduced reduced
......
...@@ -758,10 +758,10 @@ def UNe_calibrate(lamp,order,select_lines,all_lines,use_oliva=CONFIG['CAL_FUNC'] ...@@ -758,10 +758,10 @@ def UNe_calibrate(lamp,order,select_lines,all_lines,use_oliva=CONFIG['CAL_FUNC']
messages.append('Calibration failed for order %s, not enough lines.' % (str(order),)) messages.append('Calibration failed for order %s, not enough lines.' % (str(order),))
if use_oliva: if use_oliva:
#coeffs = OrderedDict({'k1':None,'k2':None,'k3':None,'l0':None,'xc':None,'rms':None}) #coeffs = OrderedDict({'k1':None,'k2':None,'k3':None,'l0':None,'xc':None,'rms':None})
coeffs.append({'k1':None,'k2':None,'k3':None,'l0':None,'xc':None,'rms':None}) coeffs.update({'k1':None,'k2':None,'k3':None,'l0':None,'xc':None,'rms':None})
if use_poly: if use_poly:
#coeffs = OrderedDict({'c0':None,'c1':None,'c2':None,'c3':None,'rms':None}) #coeffs = OrderedDict({'c0':None,'c1':None,'c2':None,'c3':None,'rms':None})
coeffs.append({'c0':None,'c1':None,'c2':None,'c3':None,'rms_poly':None}) coeffs.update({'c0':None,'c1':None,'c2':None,'c3':None,'rms_poly':None})
calib_failed = True calib_failed = True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment