Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] HLA-1412: Get regression tests to pass with python 3.13 #1936

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,7 @@ jobs:
- linux: py312-xdist
- linux: py312-devdeps-xdist
- macos: py312-devdeps-xdist
- linux: py313-devdeps-xdist
- macos: py313-devdeps-xdist
- linux: py312-cov-xdist
coverage: codecov
4 changes: 3 additions & 1 deletion drizzlepac/updatehdr.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,9 @@
uniqname = wcsname
else:
# setup pattern to match
rpatt = re.compile(wcsname + '_\d')
if wcsname is None:
raise ValueError("wcsname cannot be None")
rpatt = re.compile(wcsname + r'_\d+')

Check warning on line 554 in drizzlepac/updatehdr.py

View check run for this annotation

Codecov / codecov/patch

drizzlepac/updatehdr.py#L552-L554

Added lines #L552 - L554 were not covered by tests
index = 0
for wname in wnames:
rmatch = rpatt.match(wname)
Expand Down
4 changes: 2 additions & 2 deletions drizzlepac/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1198,11 +1198,11 @@ def base_taskname(taskname, packagename=None):

packagename : str, None (Default = None)
Package name. It is assumed that a compound task name is formed by
concatenating ``packagename`` + '.' + ``taskname``\ . If ``packagename``
concatenating ``packagename`` + '.' + ``taskname``\\ . If ``packagename``
is not ``None``, :py:func:`base_taskname` will check that the string
to the left of the right-most dot matches ``packagename`` and will
raise an ``AssertionError`` if the package name derived from the
input ``taskname`` does not match the supplied ``packagename``\ . This
input ``taskname`` does not match the supplied ``packagename``\\ . This
is intended as a check for discrepancies that may arise
during the development of the tasks. If ``packagename`` is ``None``,
no such check will be performed.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "drizzlepac"
description = " HST image combination using the drizzle algorithm to combine astronomical images, to model image distortion, to remove cosmic rays, and generally to improve the fidelity of data in the final image. "
requires-python = ">=3.10,<3.13"
requires-python = ">=3.10"
authors = [
{ name = "Megan Sosey" },
{ name = "Warren Hack" },
Expand Down
Loading