Skip to content

Commit 1640230

Browse files
committed
fix ruff
1 parent ff54042 commit 1640230

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

atlite/datasets/era5.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,15 +306,15 @@ def retrieval_times(coords, static=False, monthly_requests=False):
306306
"year": str(year),
307307
"month": str(month),
308308
"day": list(t[t.month == month].day.unique()),
309-
"time": ["%02d:00" % h for h in t[t.month == month].hour.unique()],
309+
"time": [f"{h:02d}:00" for h in t[t.month == month].hour.unique()],
310310
}
311311
times.append(query)
312312
else:
313313
query = {
314314
"year": str(year),
315315
"month": list(t.month.unique()),
316316
"day": list(t.day.unique()),
317-
"time": ["%02d:00" % h for h in t.hour.unique()],
317+
"time": [f"{h:02d}:00" for h in t.hour.unique()],
318318
}
319319
times.append(query)
320320
return times

0 commit comments

Comments
 (0)