From 73ce157e4015fb3198f3765691fbf155bef841c6 Mon Sep 17 00:00:00 2001 From: Simon Perkins Date: Tue, 30 Jan 2024 12:50:45 +0200 Subject: [PATCH 01/15] Use np.prod, np.product is deprecated in numpy 1.25 --- .../averaging/tests/test_time_and_channel_averaging.py | 8 ++++---- africanus/model/coherency/tests/test_convert.py | 4 ++-- africanus/rime/zernike.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/africanus/averaging/tests/test_time_and_channel_averaging.py b/africanus/averaging/tests/test_time_and_channel_averaging.py index c8ebf53cb..dd8c9f45c 100644 --- a/africanus/averaging/tests/test_time_and_channel_averaging.py +++ b/africanus/averaging/tests/test_time_and_channel_averaging.py @@ -55,25 +55,25 @@ def interval(): @pytest.fixture def weight(time): shape = (time.shape[0], ncorr) - return np.arange(np.product(shape), dtype=np.float64).reshape(shape) + return np.arange(np.prod(shape), dtype=np.float64).reshape(shape) @pytest.fixture def sigma(time): shape = (time.shape[0], ncorr) - return np.arange(np.product(shape), dtype=np.float64).reshape(shape) + return np.arange(np.prod(shape), dtype=np.float64).reshape(shape) @pytest.fixture def weight_spectrum(time): shape = (time.shape[0], nchan, ncorr) - return np.arange(np.product(shape), dtype=np.float64).reshape(shape) + return np.arange(np.prod(shape), dtype=np.float64).reshape(shape) @pytest.fixture def sigma_spectrum(time): shape = (time.shape[0], nchan, ncorr) - return np.arange(np.product(shape), dtype=np.float64).reshape(shape) + return np.arange(np.prod(shape), dtype=np.float64).reshape(shape) @pytest.fixture diff --git a/africanus/model/coherency/tests/test_convert.py b/africanus/model/coherency/tests/test_convert.py index 490d45231..f509c236d 100644 --- a/africanus/model/coherency/tests/test_convert.py +++ b/africanus/model/coherency/tests/test_convert.py @@ -41,11 +41,11 @@ def visibility_factory(vis_shape, input_shape, in_type, backend="numpy", **kwarg shape = vis_shape + input_shape if backend == "numpy": - vis = np.arange(1.0, np.product(shape) + 1.0) + vis = np.arange(1.0, np.prod(shape) + 1.0) vis = vis.reshape(shape) elif backend == "dask": da = pytest.importorskip("dask.array") - vis = da.arange(1.0, np.product(shape) + 1.0, chunks=np.product(shape)) + vis = da.arange(1.0, np.prod(shape) + 1.0, chunks=np.prod(shape)) vis = vis.reshape(shape) vis = vis.rechunk(kwargs["vis_chunks"] + input_shape) else: diff --git a/africanus/rime/zernike.py b/africanus/rime/zernike.py index 3a88a6c67..c3def23bf 100644 --- a/africanus/rime/zernike.py +++ b/africanus/rime/zernike.py @@ -123,7 +123,7 @@ def zernike_dde( npoly = coeffs.shape[-1] # Flatten correlation dimensions for numba function - fcorrs = np.product(corr_shape) + fcorrs = np.prod(corr_shape) ddes = np.empty((sources, times, ants, chans, fcorrs), coeffs.dtype) coeffs = coeffs.reshape((ants, chans, fcorrs, npoly)) From 078437f4d828ee3ab2afffae594de5c2b7b77d85 Mon Sep 17 00:00:00 2001 From: Simon Perkins Date: Tue, 30 Jan 2024 13:00:01 +0200 Subject: [PATCH 02/15] Create a .env file to supply environment variables to pip --- .github/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eeb138567..f903063c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,11 +41,17 @@ jobs: with: fetch-depth: 1 + - name: Create a .env file + run: > + touch .env + echo NUMBA_NRT_STATS=1 >> .env + echo NUMBA_CAPTURED_ERRORS='new_style' >> .env + - name: Install base codex-africanus run: pipenv install .[testing] - name: Run base test suite - run: pipenv run NUMBA_NRT_STATS=1 py.test -s -vvv africanus/ + run: pipenv run py.test -s -vvv africanus/ - name: List the measures directory run: curl ftp://ftp.astron.nl/outgoing/Measures/ > measures_dir.txt @@ -79,7 +85,7 @@ jobs: run: pipenv graph - name: Run complete test suite - run: pipenv run NUMBA_NRT_STATS=1 py.test -s -vvv africanus/ + run: pipenv run py.test -s -vvv africanus/ deploy: needs: [test] From 17250d00f353a48eec727ef13c2194ca0be0d998 Mon Sep 17 00:00:00 2001 From: Simon Perkins Date: Tue, 30 Jan 2024 13:05:24 +0200 Subject: [PATCH 03/15] Fix specification of python-version --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f903063c3..0de43d585 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -100,7 +100,7 @@ jobs: - name: Set up Python 3.10 uses: actions/setup-python@v5.0.0 with: - python-version: 3.10 + python-version: '3.10' - name: Install latest setuptools, wheel, pip run: python3 -m pip install -U pip setuptools wheel From 12ab506e7155964dce08efb3a6abc47cc799fb2f Mon Sep 17 00:00:00 2001 From: Simon Perkins Date: Tue, 30 Jan 2024 13:26:21 +0200 Subject: [PATCH 04/15] Use importlib.resources --- africanus/util/nvcc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/africanus/util/nvcc.py b/africanus/util/nvcc.py index 638c2dc7b..6b996b85b 100644 --- a/africanus/util/nvcc.py +++ b/africanus/util/nvcc.py @@ -3,6 +3,7 @@ import ast import contextlib +import importlib.resources import logging import os import re @@ -12,7 +13,6 @@ import tempfile from os.path import join as pjoin -from pkg_resources import resource_filename import distutils from distutils import errors @@ -486,8 +486,8 @@ def compile_using_nvcc(source, options=None, arch=None, filename="kern.cu"): options += ["-cubin"] - cupy_path = resource_filename("cupy", pjoin("core", "include")) - settings["include_dirs"].append(cupy_path) + cupy_path = importlib.resources.files("cupy") / "core" / "include" + settings["include_dirs"].append(str(cupy_path)) with _tempdir() as tmpdir: tmpfile = pjoin(tmpdir, filename) From dc3ef7eeeeff2a4c36b853fa751620f47fd7e494 Mon Sep 17 00:00:00 2001 From: Simon Perkins Date: Tue, 30 Jan 2024 14:47:05 +0200 Subject: [PATCH 05/15] fix .env creation, and temporarily disable complete test suite --- .github/workflows/ci.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0de43d585..a4d0f6305 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,7 +42,7 @@ jobs: fetch-depth: 1 - name: Create a .env file - run: > + run: | touch .env echo NUMBA_NRT_STATS=1 >> .env echo NUMBA_CAPTURED_ERRORS='new_style' >> .env @@ -72,20 +72,20 @@ jobs: curl ftp://ftp.astron.nl/outgoing/Measures/WSRT_Measures.ztar | tar xvzf - -C ~/measures echo "measures.directory: ~/measures" > ~/.casarc - - name: Install complete codex-africanus - # Need pyyaml for dask 2.17.0 - # See https://github.com/dask/dask/issues/6221 - run: > - pipenv install - .[complete] - pyyaml - git+https://gitlab.mpcdf.mpg.de/ift/nifty_gridder.git#egg=nifty-gridder + # - name: Install complete codex-africanus + # # Need pyyaml for dask 2.17.0 + # # See https://github.com/dask/dask/issues/6221 + # run: > + # pipenv install + # .[complete] + # pyyaml + # git+https://gitlab.mpcdf.mpg.de/ift/nifty_gridder.git#egg=nifty-gridder - - name: Log installed package versions - run: pipenv graph + # - name: Log installed package versions + # run: pipenv graph - - name: Run complete test suite - run: pipenv run py.test -s -vvv africanus/ + # - name: Run complete test suite + # run: pipenv run py.test -s -vvv africanus/ deploy: needs: [test] From e1d4adb59fa5fa658faaaa32ee82b91fabefa68e Mon Sep 17 00:00:00 2001 From: Simon Perkins Date: Tue, 30 Jan 2024 14:51:53 +0200 Subject: [PATCH 06/15] Handle deprecated collect_ignore --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 44ee33bda..e205cc7e2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -19,7 +19,7 @@ exclude = docs test = pytest [tool:pytest] -collect_ignore = ['setup.py'] +addopts = --ignore=setup.py [pycodestyle] ignore = E121,E123,E126,E133,E226,E241,E242,E704,W503,W504,E741 From 78cfd9b2006d29adc94c3cfad4310fbedf12927a Mon Sep 17 00:00:00 2001 From: Simon Perkins Date: Tue, 30 Jan 2024 14:55:30 +0200 Subject: [PATCH 07/15] escape env vars --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4d0f6305..6a3ab327c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,8 +44,8 @@ jobs: - name: Create a .env file run: | touch .env - echo NUMBA_NRT_STATS=1 >> .env - echo NUMBA_CAPTURED_ERRORS='new_style' >> .env + echo "NUMBA_NRT_STATS=1" >> .env + echo "NUMBA_CAPTURED_ERRORS='new_style'" >> .env - name: Install base codex-africanus run: pipenv install .[testing] From afc2fab76090c2bbba92faa08b35f3744d5e218e Mon Sep 17 00:00:00 2001 From: Simon Perkins Date: Tue, 30 Jan 2024 15:03:21 +0200 Subject: [PATCH 08/15] Temporarily disable .env file creation --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a3ab327c..756a1dc3c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,11 +41,11 @@ jobs: with: fetch-depth: 1 - - name: Create a .env file - run: | - touch .env - echo "NUMBA_NRT_STATS=1" >> .env - echo "NUMBA_CAPTURED_ERRORS='new_style'" >> .env + # - name: Create a .env file + # run: | + # touch .env + # echo "NUMBA_NRT_STATS=1" >> .env + # echo "NUMBA_CAPTURED_ERRORS='new_style'" >> .env - name: Install base codex-africanus run: pipenv install .[testing] From d541e67729836cc946d49da3c8c0432438074cd6 Mon Sep 17 00:00:00 2001 From: Simon Perkins Date: Tue, 30 Jan 2024 15:31:26 +0200 Subject: [PATCH 09/15] Reintroduce prefer_literal=True which is required to get the desired behaviour with new style numba errors --- africanus/experimental/rime/fused/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/africanus/experimental/rime/fused/core.py b/africanus/experimental/rime/fused/core.py index ed4b9c1ca..661dcfccf 100644 --- a/africanus/experimental/rime/fused/core.py +++ b/africanus/experimental/rime/fused/core.py @@ -37,7 +37,7 @@ def rime(*args): def rime_impl(*args): raise NotImplementedError - @overload(rime_impl, jit_options=JIT_OPTIONS) + @overload(rime_impl, jit_options=JIT_OPTIONS, prefer_literal=True) def nb_rime(*args): if not len(args) > 0: raise TypeError( From 9e5bca11cf0ac3a97adb6df89e23944d03156977 Mon Sep 17 00:00:00 2001 From: Simon Perkins Date: Tue, 30 Jan 2024 15:35:17 +0200 Subject: [PATCH 10/15] Re-enable .env file --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 756a1dc3c..6a3ab327c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,11 +41,11 @@ jobs: with: fetch-depth: 1 - # - name: Create a .env file - # run: | - # touch .env - # echo "NUMBA_NRT_STATS=1" >> .env - # echo "NUMBA_CAPTURED_ERRORS='new_style'" >> .env + - name: Create a .env file + run: | + touch .env + echo "NUMBA_NRT_STATS=1" >> .env + echo "NUMBA_CAPTURED_ERRORS='new_style'" >> .env - name: Install base codex-africanus run: pipenv install .[testing] From bed2d4a382ef9936c4f96cd22bbe21e6f1e86893 Mon Sep 17 00:00:00 2001 From: Simon Perkins Date: Tue, 30 Jan 2024 15:39:04 +0200 Subject: [PATCH 11/15] Re-enable complete test suite --- .github/workflows/ci.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a3ab327c..ea9297105 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,20 +72,20 @@ jobs: curl ftp://ftp.astron.nl/outgoing/Measures/WSRT_Measures.ztar | tar xvzf - -C ~/measures echo "measures.directory: ~/measures" > ~/.casarc - # - name: Install complete codex-africanus - # # Need pyyaml for dask 2.17.0 - # # See https://github.com/dask/dask/issues/6221 - # run: > - # pipenv install - # .[complete] - # pyyaml - # git+https://gitlab.mpcdf.mpg.de/ift/nifty_gridder.git#egg=nifty-gridder - - # - name: Log installed package versions - # run: pipenv graph - - # - name: Run complete test suite - # run: pipenv run py.test -s -vvv africanus/ + - name: Install complete codex-africanus + # Need pyyaml for dask 2.17.0 + # See https://github.com/dask/dask/issues/6221 + run: > + pipenv install + .[complete] + pyyaml + git+https://gitlab.mpcdf.mpg.de/ift/nifty_gridder.git#egg=nifty-gridder + + - name: Log installed package versions + run: pipenv graph + + - name: Run complete test suite + run: pipenv run py.test -s -vvv africanus/ deploy: needs: [test] From c620324b020f58e9a76717ed0c0112baa6feb53c Mon Sep 17 00:00:00 2001 From: Simon Perkins Date: Tue, 30 Jan 2024 15:39:25 +0200 Subject: [PATCH 12/15] Remove pyyaml from the install --- .github/workflows/ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea9297105..0b26cd4ef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,12 +73,9 @@ jobs: echo "measures.directory: ~/measures" > ~/.casarc - name: Install complete codex-africanus - # Need pyyaml for dask 2.17.0 - # See https://github.com/dask/dask/issues/6221 run: > pipenv install .[complete] - pyyaml git+https://gitlab.mpcdf.mpg.de/ift/nifty_gridder.git#egg=nifty-gridder - name: Log installed package versions From 21edff5f459718cc27d122dce2a4a4e85347163e Mon Sep 17 00:00:00 2001 From: Simon Perkins Date: Tue, 30 Jan 2024 15:58:05 +0200 Subject: [PATCH 13/15] Separate basis_function into real and complex implementations to avoid complex to real conversion warnings --- africanus/model/shape/shapelets.py | 53 ++++++++++++++---------------- 1 file changed, 24 insertions(+), 29 deletions(-) diff --git a/africanus/model/shape/shapelets.py b/africanus/model/shape/shapelets.py index 3a7881f2e..72599120f 100644 --- a/africanus/model/shape/shapelets.py +++ b/africanus/model/shape/shapelets.py @@ -27,25 +27,21 @@ def factorial(n): @numba.jit(nogil=True, nopython=True, cache=True) -def basis_function(n, xx, beta, fourier=False, delta_x=-1): - if fourier: - x = 2 * np.pi * xx - scale = 1.0 / beta - else: - x = xx - scale = beta +def real_basis_function(n, xx, beta, delta_x=-1): + basis_component = 1.0 / np.sqrt(2.0**n * np.sqrt(np.pi) * factorial(n) * beta) + exponential_component = hermite(n, xx / beta) * np.exp(-(xx**2) / (2.0 * beta**2)) + return basis_component * exponential_component + + +@numba.jit(nogil=True, nopython=True, cache=True) +def complex_basis_function(n, xx, beta, delta_x=-1): + x = 2 * np.pi * xx + scale = 1.0 / beta basis_component = 1.0 / np.sqrt(2.0**n * np.sqrt(np.pi) * factorial(n) * scale) exponential_component = hermite(n, x / scale) * np.exp(-(x**2) / (2.0 * scale**2)) - if fourier: - return ( - 1.0j**n - * basis_component - * exponential_component - * np.sqrt(2 * np.pi) - / delta_x - ) - else: - return basis_component * exponential_component + return ( + 1.0j**n * basis_component * exponential_component * np.sqrt(2 * np.pi) / delta_x + ) @numba.jit(nogil=True, nopython=True, cache=True) @@ -96,8 +92,8 @@ def shapelet(coords, frequency, coeffs, beta, delta_lm, dtype=np.complex128): 0 if coeffs[src][n1, n2] == 0 else coeffs[src][n1, n2] - * basis_function(n1, fu, beta_u, True, delta_x=delta_l) - * basis_function(n2, fv, beta_v, True, delta_x=delta_m) + * complex_basis_function(n1, fu, beta_u, delta_x=delta_l) + * complex_basis_function(n2, fv, beta_v, delta_x=delta_m) ) out_shapelets[row, chan, src] = tmp_shapelet return out_shapelets @@ -145,8 +141,8 @@ def shapelet_with_w_term( 0 if coeffs[src][n1, n2] == 0 else coeffs[src][n1, n2] - * basis_function(n1, fu, beta_u, True, delta_x=delta_l) - * basis_function(n2, fv, beta_v, True, delta_x=delta_m) + * complex_basis_function(n1, fu, beta_u, delta_x=delta_l) + * complex_basis_function(n2, fv, beta_v, delta_x=delta_m) ) w_term = phase_steer_and_w_correct((u, v, w), (l, m), frequency[chan]) out_shapelets[row, chan, src] = tmp_shapelet * w_term @@ -183,17 +179,16 @@ def shapelet_1d(u, coeffs, fourier, delta_x=1, beta=1.0): if delta_x is None: raise ValueError("You have to pass in a value for delta_x in Fourier mode") out = np.zeros(nrow, dtype=np.complex128) + for row, ui in enumerate(u): + for n, c in enumerate(coeffs): + out[row] += c * complex_basis_function(n, ui, beta, delta_x=delta_x) else: out = np.zeros(nrow, dtype=np.float64) - for row, ui in enumerate(u): - for n, c in enumerate(coeffs): - out[row] += c * basis_function( - n, ui, beta, fourier=fourier, delta_x=delta_x - ) - return out + for row, ui in enumerate(u): + for n, c in enumerate(coeffs): + out[row] += c * real_basis_function(n, ui, beta, delta_x=delta_x) - -# @numba.jit(nogil=True, nopython=True, cache=True) + return out def shapelet_2d(u, v, coeffs_l, fourier, delta_x=None, delta_y=None, beta=1.0): From 8155867113bf3635494285f59d8587fe794b7756 Mon Sep 17 00:00:00 2001 From: Simon Perkins Date: Tue, 30 Jan 2024 16:30:02 +0200 Subject: [PATCH 14/15] Add prefer_literal=True to @overloads in the Perley Polyhedron gridder --- .../policies/baseline_transform_policies.py | 2 +- .../perleypolyhedron/policies/convolution_policies.py | 2 +- .../perleypolyhedron/policies/phase_transform_policies.py | 2 +- .../perleypolyhedron/policies/stokes_conversion_policies.py | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/africanus/gridding/perleypolyhedron/policies/baseline_transform_policies.py b/africanus/gridding/perleypolyhedron/policies/baseline_transform_policies.py index 0ea9d1642..57f17c8be 100644 --- a/africanus/gridding/perleypolyhedron/policies/baseline_transform_policies.py +++ b/africanus/gridding/perleypolyhedron/policies/baseline_transform_policies.py @@ -83,7 +83,7 @@ def policy(uvw, ra0, dec0, ra, dec, policy_type): pass -@overload(policy, inline="always") +@overload(policy, inline="always", prefer_literal=True) def policy_impl(uvw, ra0, dec0, ra, dec, policy_type): if policy_type.literal_value == "None": return uvw_norotate diff --git a/africanus/gridding/perleypolyhedron/policies/convolution_policies.py b/africanus/gridding/perleypolyhedron/policies/convolution_policies.py index 2093be11c..4a1152640 100644 --- a/africanus/gridding/perleypolyhedron/policies/convolution_policies.py +++ b/africanus/gridding/perleypolyhedron/policies/convolution_policies.py @@ -349,7 +349,7 @@ def policy( pass -@overload(policy, inline="always") +@overload(policy, inline="always", prefer_literal=True) def policy_impl( scaled_u, scaled_v, diff --git a/africanus/gridding/perleypolyhedron/policies/phase_transform_policies.py b/africanus/gridding/perleypolyhedron/policies/phase_transform_policies.py index b42e490d1..1b6ab6175 100644 --- a/africanus/gridding/perleypolyhedron/policies/phase_transform_policies.py +++ b/africanus/gridding/perleypolyhedron/policies/phase_transform_policies.py @@ -38,7 +38,7 @@ def policy(vis, uvw, lambdas, ra0, dec0, ra, dec, policy_type, phasesign=1.0): pass -@overload(policy, inline="always") +@overload(policy, inline="always", prefer_literal=True) def policy_impl(vis, uvw, lambdas, ra0, dec0, ra, dec, policy_type, phasesign=1.0): if policy_type.literal_value == "None" or policy_type.literal_value is None: return phase_norotate diff --git a/africanus/gridding/perleypolyhedron/policies/stokes_conversion_policies.py b/africanus/gridding/perleypolyhedron/policies/stokes_conversion_policies.py index 873fd744d..c1e9d94c9 100644 --- a/africanus/gridding/perleypolyhedron/policies/stokes_conversion_policies.py +++ b/africanus/gridding/perleypolyhedron/policies/stokes_conversion_policies.py @@ -5,7 +5,7 @@ def stokes2corr(vis_in, vis_out, policy_type): pass -@overload(stokes2corr, inline="always") +@overload(stokes2corr, inline="always", prefer_literal=True) def stokes2corrimpl(vis_in, vis_out, policy_type): if policy_type.literal_value == "XXYY_FROM_I": @@ -143,7 +143,7 @@ def corr2stokes(vis_in, policy_type): pass -@overload(corr2stokes, inline="always") +@overload(corr2stokes, inline="always", prefer_literal=True) def corr2stokesimpl(vis_in, policy_type): if policy_type.literal_value == "I_FROM_XXYY": return lambda vis_in, policy_type: (vis_in[0] + vis_in[1]) * 0.5 @@ -183,7 +183,7 @@ def ncorr_out(policy_type): pass -@overload(ncorr_out, inline="always") +@overload(ncorr_out, inline="always", prefer_literal=True) def ncorr_outimpl(policy_type): if policy_type.literal_value == "XXYY_FROM_I": return lambda policy_type: 2 From 71a080882ace1d538e6b877f19759cfe45d1f2e9 Mon Sep 17 00:00:00 2001 From: Simon Perkins Date: Tue, 30 Jan 2024 16:54:09 +0200 Subject: [PATCH 15/15] [skip ci] Update HISTORY.rst --- HISTORY.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/HISTORY.rst b/HISTORY.rst index 5961793db..fa3d7091d 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -4,6 +4,7 @@ History X.Y.Z (YYYY-MM-DD) ------------------ +* Address warnings (:pr:`292`) * Update github action versions (:pr:`291`) * Deprecate python 3.8 support (:pr:`290`) * Use pre-commit hooks for auto-linting (:pr:`290`)