Skip to content

Commit db42f6f

Browse files
committed
Adding more excluded intervals
1 parent 1618e10 commit db42f6f

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

kadi/commands/validate.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -779,10 +779,15 @@ def state_vals(self):
779779

780780
def add_exclude_intervals(self):
781781
super().add_exclude_intervals()
782-
# The following corresponds to an ACIS watchdog reboot
782+
self.add_exclude_interval(
783+
"2020:023:17:57:00", "2020:023:23:07:30", "ACIS FSW v56 Update"
784+
)
783785
self.add_exclude_interval(
784786
"2022:016:00:05:23", "2022:018:18:43:48", "ACIS Watchdog Reboot"
785787
)
788+
self.add_exclude_interval(
789+
"2023:263:00:37:00", "2023:263:07:40:00", "ACIS FSW v60 Update"
790+
)
786791

787792

788793
def get_overlap_mask(times: np.ndarray, intervals: Table):

kadi/scripts/create_dpa_power_model.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
logger = logging.getLogger("kadi")
1919

2020
exclude_intervals = [
21-
("2022:016:00:05:23", "2022:018:18:43:48"),
21+
("2020:023:17:57:00", "2020:023:23:07:30"), # ACIS FSW v56 Update
22+
("2022:016:00:05:23", "2022:018:18:43:48"), # ACIS Watchdog Reboot
23+
("2023:263:00:37:00", "2023:263:07:40:00"), # ACIS FSW v60 Update
2224
]
2325

2426

@@ -54,8 +56,6 @@ def main():
5456
stop = CxoTime(args.stop)
5557
start = stop - args.days * u.day
5658

57-
logger.debug("Obtaining data from %s to %s", start.yday, stop.yday)
58-
5959
# States to obtain for the model
6060
state_keys = [
6161
"ccd_count",
@@ -81,6 +81,8 @@ def main():
8181

8282
logger.setLevel(args.log_level)
8383

84+
logger.info("Using data from %s to %s", start.yday, stop.yday)
85+
8486
# create on-off states for FEPs and CCDs
8587
ccds = [f"I{i}" for i in range(4)] + [f"S{i}" for i in range(6)]
8688
ccdsfeps = defaultdict(list)

0 commit comments

Comments
 (0)