Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Merge branch 'develop' of github.com:ecmwf-lab/ecml-tools into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Mar 20, 2024
2 parents a466f31 + 44fdf77 commit b3bee2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecml_tools/create/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def default_statistics_dates(dates):
n_years = (last - first).days // 365

if n_years >= 20:
end = datetime.datetime(last.year - 2, last.month, last.day, last.hour, last.minute, last.second)
print(f"Number of years {n_years} >= 20, leaving out 2 years. {end=}")
end = datetime.datetime(last.year - 3, last.month, last.day, last.hour, last.minute, last.second)
print(f"Number of years {n_years} >= 20, leaving out 3 years. {end=}")

elif n_years >= 10: # leave out 1 year
end = datetime.datetime(last.year - 1, last.month, last.day, last.hour, last.minute, last.second)
Expand Down

0 comments on commit b3bee2a

Please sign in to comment.