Skip to content

Commit

Permalink
fix ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
lkstrp committed Dec 9, 2024
1 parent ff54042 commit 1640230
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atlite/datasets/era5.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,15 +306,15 @@ def retrieval_times(coords, static=False, monthly_requests=False):
"year": str(year),
"month": str(month),
"day": list(t[t.month == month].day.unique()),
"time": ["%02d:00" % h for h in t[t.month == month].hour.unique()],
"time": [f"{h:02d}:00" for h in t[t.month == month].hour.unique()],
}
times.append(query)
else:
query = {
"year": str(year),
"month": list(t.month.unique()),
"day": list(t.day.unique()),
"time": ["%02d:00" % h for h in t.hour.unique()],
"time": [f"{h:02d}:00" for h in t.hour.unique()],
}
times.append(query)
return times
Expand Down

0 comments on commit 1640230

Please sign in to comment.