Commit 514ed91b authored by Monica Rainer's avatar Monica Rainer
Browse files

Fix shiftY retrieval in wlframes, update version

parent 903acfe2
__version__ = '1.4.0' __version__ = '1.4.1'
...@@ -180,10 +180,11 @@ class GBWls(): ...@@ -180,10 +180,11 @@ class GBWls():
pass pass
if dy: if dy:
shift = db.extract_dbfile(self.dbconn,'shiftY') try:
if not shift: shift = db.extract_dbfile(self.dbconn,'shiftY')
cal_flat = db.extract_dbfile(self.dbconn,'flat') except:
if cal_flat: try:
cal_flat = db.extract_dbfile(self.dbconn,'flat')
mflat = ccdproc.CCDData.read(cal_flat, unit=u.adu) mflat = ccdproc.CCDData.read(cal_flat, unit=u.adu)
shift = varie.shiftY(mflat.data) shift = varie.shiftY(mflat.data)
db.insert_dbfile(self.dbconn,'shiftY',shift) db.insert_dbfile(self.dbconn,'shiftY',shift)
......
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