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

Fix epoch interpolation bug, wrong function name for interpolation #119

Closed matthewdahmer closed 2 years ago

matthewdahmer commented 2 years ago

Description

Fixes #118

Interface impacts

None

Testing

Unit tests

Independent check of unit tests by @taldcroft

Functional tests

I've been using the included fix for several months, including running all models and fitting new models.

@taldcroft ran the following from #118, confirming that it fails in flight and succeeds with this PR:

from xija import get_model_spec, ThermalModel
tstart = '2020:100:00:00:00'
tstop = '2022:100:00:00:00'
model_spec, version = get_model_spec.get_xija_model_spec('aca')
model = ThermalModel('aca', start=tstart, stop=tstop, model_spec=model_spec)
model.comp['aca0'].set_data(-10)
model.make()
model.comp['solarheat__aca0'].epoch = '2022:090'