diff --git a/.github/workflows/aa-ci.yml b/.github/workflows/aa-ci.yml index 74e265a..cd9914c 100644 --- a/.github/workflows/aa-ci.yml +++ b/.github/workflows/aa-ci.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: ['3.10', '3.11', '3.12', '3.13'] steps: - uses: actions/checkout@main diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 6a2309f..cf8fa42 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -17,11 +17,11 @@ jobs: - name: Set up Python uses: actions/setup-python@main with: - python-version: '3.12' + python-version: '3.13' - name: Install coverage run: pip install coverage - name: Install astroalign dependencies - run: pip install "numpy>=1.11" "scipy>=0.15" scikit-image sep-pjw + run: pip install numpy scipy scikit-image "sep>=1.4.0" - name: Install test dependencies run: pip install -r tests/requirements.txt - name: Run coverage diff --git a/astroalign.py b/astroalign.py index b847460..dba6474 100644 --- a/astroalign.py +++ b/astroalign.py @@ -534,7 +534,7 @@ def register( def _find_sources(img, detection_sigma=5, min_area=5, mask=None): """Return sources (x, y) sorted by brightness.""" - import sep_pjw as sep + import sep image = img.astype("float32") bkg = sep.Background(image, mask=mask) diff --git a/pyproject.toml b/pyproject.toml index 2dcb4d5..358d35b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,8 +9,8 @@ description = "Astrometric Alignment of Images" maintainers = [{ name = "Martin Beroiz", email = "martinberoiz@gmail.com" }] readme = "README.md" dynamic = ["version"] -requires-python = ">=3.9" -dependencies = ["numpy>=1.17", "scipy>=0.15", "scikit-image", "sep-pjw"] +requires-python = ">=3.10" +dependencies = ["numpy", "scipy", "scikit-image", "sep>=1.4.0"] license = { file = "LICENSE.txt" } keywords = [ "astronomy", diff --git a/tests/test_align.py b/tests/test_align.py index 230e793..f4aa304 100644 --- a/tests/test_align.py +++ b/tests/test_align.py @@ -265,7 +265,7 @@ def compare_image(self, the_image): """Return the fraction of sources found in the reference image""" # pixel comparison is not good, doesn't work. Compare catalogs. full_algn = the_image.astype("float32") - import sep_pjw as sep + import sep bkg = sep.Background(full_algn) thresh = 5.0 * bkg.globalrms @@ -724,7 +724,7 @@ def compare_image(self, the_image): """Return the fraction of sources found in the reference image""" # pixel comparison is not good, doesn't work. Compare catalogs. full_algn = np.mean(the_image, axis=-1, dtype="float32") - import sep_pjw as sep + import sep bkg = sep.Background(full_algn) thresh = 5.0 * bkg.globalrms diff --git a/tox.ini b/tox.ini index 4542329..1bd2b5e 100644 --- a/tox.ini +++ b/tox.ini @@ -4,18 +4,18 @@ # and then run "tox" from this directory. [tox] -envlist = py{38,39,310,311}, style, docs, docstyle +envlist = py{310,311,312,313}, style, docs, docstyle [gh-actions] python = - 3.8: py38 - 3.9: py39 3.10: py310 - 3.11: style, docstyle, docs, py311 + 3.11: py311 + 3.12: py312 + 3.13: style, docstyle, docs, py313 -[testenv:py{38,39,310,311}] +[testenv:py{310,311,312,313}] usedevelop = False deps = astropy