Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Nov 7, 2024
1 parent 2635a18 commit 0f972f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion satip/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def run(
# If there is less than this, we move over to the 15 minute data
# note we need history data to be larger than this.
n_datasets_needed = int(pd.to_timedelta(history) / pd.Timedelta("5 min") * 0.75)
if (len(datasets) < 18) or use_hr_serviri:
if (len(datasets) < n_datasets_needed) or use_hr_serviri:
log.warn(
f"No RSS Imagery available or using backup ({use_hr_serviri=}), "
f"falling back to 15-minutely data",
Expand Down

0 comments on commit 0f972f8

Please sign in to comment.