Skip to content

Commit

Permalink
#923: Silencing CMR query logging in get_prev_day_indices, function u…
Browse files Browse the repository at this point in the history
…sed by several higher-level functions
  • Loading branch information
philipjyoon committed Aug 13, 2024
1 parent d4435f0 commit 97b1ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_subscriber/cslc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def get_prev_day_indices(self, day_index: int, frame_number: int):
days_delta = day_index - frame.sensing_datetime_days_index[-1]
end_date = start_date + timedelta(days=days_delta - 1) # We don't want the current day index in this
query_timerange = DateTimeRange(start_date.strftime(CMR_TIME_FORMAT), end_date.strftime(CMR_TIME_FORMAT))
acq_index_to_bursts, _ = self.get_k_granules_from_cmr(query_timerange, frame_number)
acq_index_to_bursts, _ = self.get_k_granules_from_cmr(query_timerange, frame_number, silent = True)
all_prev_indices = frame.sensing_datetime_days_index + sorted(list(acq_index_to_bursts.keys()))
logger.debug(f"All previous day indices: {all_prev_indices}")
return all_prev_indices
Expand Down

0 comments on commit 97b1ef7

Please sign in to comment.