Skip to content

Commit

Permalink
Only deal with obsids after the start of the load
Browse files Browse the repository at this point in the history
  • Loading branch information
jzuhone committed Nov 4, 2023
1 parent 49094b4 commit 32f26d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion acis_thermal_check/apps/acisfp_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import sys

import matplotlib
import numpy as np
from astropy.table import Table
from chandra_limits import ACISFPLimit
from cxotime import CxoTime
Expand Down Expand Up @@ -278,7 +279,9 @@ def make_prediction_viols(self, temps, states, load_start):
viols = super().make_prediction_viols(temps, states, load_start)

# Store the obsid table
self.acis_and_ecs_obs = self.limit_object.acis_obs_info.as_table()
obs_table = self.limit_object.acis_obs_info.as_table()
idxs = np.where(CxoTime(obs_table["start_science"]).secs > load_start)[0]
self.acis_and_ecs_obs = obs_table[idxs]

return viols

Expand Down

0 comments on commit 32f26d9

Please sign in to comment.