sot / xija

Thermal modeling framework for Chandra X-ray Observatory
https://sot.github.io/xija
BSD 3-Clause "New" or "Revised" License
9 stars 5 forks source link

Raise exception on incompatible component data #33

Open jeanconn opened 9 years ago

jeanconn commented 9 years ago

This came up in the context of the PSMC checker, as Dick updated the tool to feed in the detector housing heater state with:

model.comp['dh_heater'].set_data(dh_heater,dh_heater_times)

but dh_heater was a numpy array with integer type not a boolean array. It would be great if the model components could verify data type and raise an exception as needed.