Skip to content

Commit

Permalink
Merge pull request #56 from jzuhone/fix_cea
Browse files Browse the repository at this point in the history
Add predictive data for 1dahtbon to cea_check
  • Loading branch information
jzuhone authored Jan 5, 2023
2 parents c777068 + dbc9d4f commit 7e86e73
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions acis_thermal_check/apps/cea_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ def __init__(self):
}
hist_limit = [5.0]
limits_map = {}
other_telem = ["2imonst", "2sponst", "2s2onst"]
other_telem = ["2imonst", "2sponst", "2s2onst", "1dahtbon"]
super(CEACheck, self).__init__("2ceahvpt", "cea", valid_limits,
hist_limit, limits_map=limits_map,
other_telem=other_telem)
other_telem=other_telem,
other_map={'1dahtbon': 'dh_heater'})

def make_prediction_viols(self, temps, states, load_start):
"""
Expand Down
2 changes: 1 addition & 1 deletion acis_thermal_check/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def calc_model(self, model_spec, states, tstart, tstop, state0=None):
model.comp['roll'].set_data(roll, model.times)
model.comp['pitch'].set_data(pitch, model.times)

if self.name in ["psmc", "acisfp"] and state0 is not None:
if self.name in ["psmc", "acisfp", "cea"] and state0 is not None:
# Detector housing heater contribution to heating
htrbfn = TASK_DATA / "acis_thermal_check/data/dahtbon_history.rdb"
mylog.info('Reading file of dahtrb commands from file %s' % htrbfn)
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 7e86e73

Please sign in to comment.