We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SensorData.from_fits()
1 parent c77b376 commit b161f1cCopy full SHA for b161f1c
msfc_ccd/_images/_sensor_images.py
@@ -252,9 +252,9 @@ def from_fits(
252
time[index] = astropy.time.Time(header["IMG_TS"])
253
timedelta[index] = header["MEAS_EXP"]
254
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"]
+ serial_number[index] = header.get("CAM_SN")
+ run_mode[index] = header.get("RUN_MODE")
+ status[index] = header.get("IMG_STAT")
258
voltage_fpga_vccint[index] = header["FPGAVINT"]
259
voltage_fpga_vccaux[index] = header["FPGAVAUX"]
260
voltage_fpga_vccbram[index] = header["FPGAVBRM"]
0 commit comments