Skip to content

Commit b161f1c

Browse files
authored
Modified SensorData.from_fits() to be less strict. (#6)
1 parent c77b376 commit b161f1c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

msfc_ccd/_images/_sensor_images.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ def from_fits(
252252
time[index] = astropy.time.Time(header["IMG_TS"])
253253
timedelta[index] = header["MEAS_EXP"]
254254
timedelta_requested[index] = header["IMG_EXP"] * u.ms
255-
serial_number[index] = header["CAM_SN"]
256-
run_mode[index] = header["RUN_MODE"]
257-
status[index] = header["IMG_STAT"]
255+
serial_number[index] = header.get("CAM_SN")
256+
run_mode[index] = header.get("RUN_MODE")
257+
status[index] = header.get("IMG_STAT")
258258
voltage_fpga_vccint[index] = header["FPGAVINT"]
259259
voltage_fpga_vccaux[index] = header["FPGAVAUX"]
260260
voltage_fpga_vccbram[index] = header["FPGAVBRM"]

0 commit comments

Comments
 (0)