Loading csst/msc/data.py +11 −15 Original line number Diff line number Diff line Loading @@ -135,8 +135,6 @@ class CsstMscImgData(CsstMscData): >>> print("instrument: ", data.get_l0keyword("pri", "INSTRUME")) >>> print("object: ", data.get_l0keyword("pri", "OBJECT")) """ try: with fits.open(fp) as hdulist: instrument = hdulist[0].header.get('INSTRUME') # strip or not? detector = hdulist[0].header.get('DETECTOR') # strip or not? Loading @@ -148,5 +146,3 @@ class CsstMscImgData(CsstMscData): hdu1 = hdulist[1].copy() data = CsstMscImgData(hdu0, hdu1, instrument=instrument, detector=detector) return data except Exception as e: print(e) Loading
csst/msc/data.py +11 −15 Original line number Diff line number Diff line Loading @@ -135,8 +135,6 @@ class CsstMscImgData(CsstMscData): >>> print("instrument: ", data.get_l0keyword("pri", "INSTRUME")) >>> print("object: ", data.get_l0keyword("pri", "OBJECT")) """ try: with fits.open(fp) as hdulist: instrument = hdulist[0].header.get('INSTRUME') # strip or not? detector = hdulist[0].header.get('DETECTOR') # strip or not? Loading @@ -148,5 +146,3 @@ class CsstMscImgData(CsstMscData): hdu1 = hdulist[1].copy() data = CsstMscImgData(hdu0, hdu1, instrument=instrument, detector=detector) return data except Exception as e: print(e)