Fix issues with thermal models
What's Changed
- The call to
get_xija_model_spec
in the functionfind_json
to get the model specification file originally setcheck_version=True
, but this function was often called many times in a short interval in some applications and github did not appreciate the repeated requests. So this option is now turned off. - The
find_json
function also had some convoluted logic to look for the JSON file in a differentchandra_models
repository path which has now been fixed. - The
ThermalModelFromRun
class "divided" a string by a string instead of using the divide operator to concatenate aPath
object and a string. This has now been fixed. - The
ThermalModelRunner.from_backstop
had an error in computing the initial temperature from the start of a model run. This has now been fixed, and required an update to one of the test answers. - A new
pytest
fixture has been added to allow one to store new answers when running the tests if necessary. - The interface with
acis_thermal_check
has been updated to match the changes made in acisops/acis_thermal_check#44. - The planning limit for 1DEAMZT model was one degree lower than it should have been and this is fixed.
Full Changelog: 2.2.0...2.3.0
Includes the following merges:
- PR #9: Fix issues with thermal model handling