From 168fdfdb16435134f2b3a25a834def089c3a0197 Mon Sep 17 00:00:00 2001 From: Hauke Schulz <43613877+observingClouds@users.noreply.github.com> Date: Wed, 18 Sep 2024 17:01:43 +0200 Subject: [PATCH] update packages and actions (#37) * update artefacts action * replace deprecated np.in1d --- .github/workflows/test.yml | 2 +- pysonde/readers/reader_helpers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2de486b..14f0503 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -56,7 +56,7 @@ jobs: run: | python scripts/plot_radiosonde_data.py -i examples/level1/EUREC4A_BCO_Vaisala-RS_L1-ascent_20200126T2244_v3.0.0.nc -o artifacts - name: Upload plots - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: figures path: | diff --git a/pysonde/readers/reader_helpers.py b/pysonde/readers/reader_helpers.py index 3360103..835a1ca 100644 --- a/pysonde/readers/reader_helpers.py +++ b/pysonde/readers/reader_helpers.py @@ -139,7 +139,7 @@ def check_availability(decomp_files, file, return_name=False): basenames = [os.path.basename(decomp_file) for decomp_file in decomp_files] # Availability - availability_mask = np.in1d(basenames, file) + availability_mask = np.isin(basenames, file) if np.sum(availability_mask) > 0: avail = True