From 24e8e73653620e39e3f1248c042b49849c07d682 Mon Sep 17 00:00:00 2001 From: Gabriel Brammer Date: Tue, 7 Jan 2025 15:51:06 +0100 Subject: [PATCH] fix compatibility --- grizli/aws/field_tiles.py | 2 +- grizli/tests/test_cutils.py | 2 +- setup.cfg | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/grizli/aws/field_tiles.py b/grizli/aws/field_tiles.py index bb7cd46f..e2fa3548 100644 --- a/grizli/aws/field_tiles.py +++ b/grizli/aws/field_tiles.py @@ -988,7 +988,7 @@ def process_tile(field='cos', tile='01.01', filters=TILE_FILTERS, fetch_existing else: # ref_tile = (9, 9) if len(ref_tileq) == 1: - ref_tile = tuple(np.cast[int](ref_tileq['tile'][0].split('.'))) + ref_tile = tuple(np.array(ref_tileq['tile'][0].split('.')).astype(int)) else: ref_tile = (9, 9) diff --git a/grizli/tests/test_cutils.py b/grizli/tests/test_cutils.py index 50392e73..d1bb19d6 100644 --- a/grizli/tests/test_cutils.py +++ b/grizli/tests/test_cutils.py @@ -67,7 +67,7 @@ def test_disperse_c(): dxpix = np.arange(nx, dtype=int) + sh[0] // 2 - 1 ytrace_beam = (np.arange(nx) - nx / 2) * 0.5 / 200 yfrac_beam = ytrace_beam - np.floor(ytrace_beam) - dyc = np.cast[int](ytrace_beam + 20) - 20 + 1 + dyc = (ytrace_beam + 20).astype(int) - 20 + 1 idx = np.arange(modelf.size, dtype=np.int64).reshape(sh_beam) flat_index = idx[dyc + x0[0], dxpix] sens_curve = yfrac_beam**0 diff --git a/setup.cfg b/setup.cfg index 0a148306..a77727ac 100644 --- a/setup.cfg +++ b/setup.cfg @@ -48,7 +48,7 @@ include_package_data = True test = pytest>=5.1 flake8 - drizzlepac<=3.7.0 + drizzlepac<3.7.0 docs = sphinx sphinx-astropy @@ -57,7 +57,7 @@ jwst = pysiaf grismconf==1.32 numba - drizzlepac<=3.7.0 + drizzlepac<3.7.0 snowblind>=0.2.1 aws = awscli @@ -67,7 +67,7 @@ aws = hst = reprocess-wfc3 astroscrappy - drizzlepac<=3.7.0 + drizzlepac<3.7.0 stsci.tools wfc3tools