From 61436a96a36dd09bb67f90424b345316d7234916 Mon Sep 17 00:00:00 2001 From: barely-sad-one <43311743+barely-sad-one@users.noreply.github.com> Date: Tue, 13 May 2025 11:22:35 +0530 Subject: [PATCH] fix: type change numpy.int64 was the type of snwe list value which cannot be serialize. To fix it; values are converted into float. --- src/pyaps3/autoget.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pyaps3/autoget.py b/src/pyaps3/autoget.py index 7b41d9f..fbb88a6 100644 --- a/src/pyaps3/autoget.py +++ b/src/pyaps3/autoget.py @@ -130,9 +130,10 @@ def ECMWFdload(bdate,hr,filedir,model='ERA5',datatype='fc',humidity='Q',snwe=Non # download a geographical area subset if snwe is not None: - s, n, w, e = snwe + s, n, w, e = [float(v) for v in snwe] indict['area'] = [n, w, s, e] + # Assert grib file not yet downloaded if not os.path.exists(fname): print(f'Downloading {i+1} of {len(bdate)}: {fname} ')