Skip to content

Commit

Permalink
statistics: leave 3 years if > 20 years
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed Mar 19, 2024
1 parent 556b123 commit 89b6c5d
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 89b6c5d

Please sign in to comment.