Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/aa-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion astroalign.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down