From 04fa901961fbe4ba6ee3a21541fc4a838e6c3ad7 Mon Sep 17 00:00:00 2001 From: Baudouin Raoult Date: Sun, 11 Feb 2024 19:10:14 +0000 Subject: [PATCH 1/3] Turn off progress bars --- climetlab/core/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/climetlab/core/__init__.py b/climetlab/core/__init__.py index 347b0d2d..a033504b 100644 --- a/climetlab/core/__init__.py +++ b/climetlab/core/__init__.py @@ -137,7 +137,7 @@ def cube(self, *args, **kwargs): def get_metadata(self, i): return self[i].metadata() - def unique_values(self, *coords, remapping=None, patches=None, progress_bar=True): + def unique_values(self, *coords, remapping=None, patches=None, progress_bar=False): """ Given a list of metadata attributes, such as date, param, levels, returns the list of unique values for each attributes @@ -166,7 +166,7 @@ def unique_values(self, *coords, remapping=None, patches=None, progress_bar=True return dic - def combinations(self, *coords, progress_bar=True): + def combinations(self, *coords, progress_bar=False): assert all(isinstance(k, str) for k in coords), coords iterable = self From d89a0cdd613526af782b61db83a4699231e2e439 Mon Sep 17 00:00:00 2001 From: Florian Pinault Date: Mon, 12 Feb 2024 08:59:41 +0000 Subject: [PATCH 2/3] disable CDS testing (as it current migration creates timeout) --- .github/workflows/test-and-release.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index 43d18124..c206225b 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -81,11 +81,12 @@ jobs: run: | import os - for n in ('ECMWFAPIRC', 'CDSAPIRC'): - m = os.path.expanduser("~/." + n.lower()) - if os.environ[n]: - with open(m, "w") as f: - print(os.environ[n], file=f) + # for n in ('ECMWFAPIRC', 'CDSAPIRC'): + n = 'ECMWFAPIRC' + m = os.path.expanduser("~/." + n.lower()) + if os.environ[n]: + with open(m, "w") as f: + print(os.environ[n], file=f) - run: mkdir test-data - run: echo "dataA" > test-data/dataA.txt - run: echo "dataB" > test-data/dataB.txt From eb58884686b674efb3c1f4210d82281306abfd2b Mon Sep 17 00:00:00 2001 From: Florian Pinault Date: Mon, 12 Feb 2024 09:07:28 +0000 Subject: [PATCH 3/3] Bump version 0.20.4 --- climetlab/version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/climetlab/version b/climetlab/version index 144996ed..6dd46024 100644 --- a/climetlab/version +++ b/climetlab/version @@ -1 +1 @@ -0.20.3 +0.20.4