From 37f9feaf3d95260690bf6cdfd4c472a67b32c98d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 08:33:00 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- atlite/datasets/era5.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/atlite/datasets/era5.py b/atlite/datasets/era5.py index 1a7d96a4..0d683af5 100644 --- a/atlite/datasets/era5.py +++ b/atlite/datasets/era5.py @@ -307,7 +307,9 @@ def retrieval_times(coords, static=False, monthly_requests=False): query = { "year": str(year), "month": [str(month).zfill(2)], - "day": list(t[t.month == month].day.unique().astype(str).str.zfill(2)), + "day": list( + t[t.month == month].day.unique().astype(str).str.zfill(2) + ), "time": ["%02d:00" % h for h in t[t.month == month].hour.unique()], } times.append(query) @@ -320,7 +322,7 @@ def retrieval_times(coords, static=False, monthly_requests=False): } times.append(query) return times - + def noisy_unlink(path): """