FlaredetectorWidget: handle K2 no QUARTER in header
This commit is contained in:
@@ -66,7 +66,10 @@ class FlaredetectorWidget(QtWidgets.QWidget):
|
||||
print(f"Plotting: {fitsFilePath}")
|
||||
self.currentLC = lk.read(fitsFilePath)
|
||||
if(isinstance(self.currentLC, lk.lightcurve.KeplerLightCurve)):
|
||||
print(f"Kepler Quarter: {self.currentLC.hdu[0].header['QUARTER']}")
|
||||
try:
|
||||
print(f"Kepler Quarter: {self.currentLC.hdu[0].header['QUARTER']}")
|
||||
except:
|
||||
print("K2 Data, no QUARTER in header")
|
||||
self.currentLCCollection = None
|
||||
self.currentMainName = mainName
|
||||
self.updateFit()
|
||||
|
||||
Reference in New Issue
Block a user