drizzle 1.15.2__tar.gz → 1.15.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of drizzle might be problematic. Click here for more details.

Files changed (61) hide show
  1. {drizzle-1.15.2 → drizzle-1.15.3}/CHANGES.rst +9 -1
  2. {drizzle-1.15.2 → drizzle-1.15.3}/PKG-INFO +2 -2
  3. {drizzle-1.15.2 → drizzle-1.15.3}/drizzle/tests/test_drizzle.py +36 -0
  4. {drizzle-1.15.2 → drizzle-1.15.3}/drizzle.egg-info/PKG-INFO +2 -2
  5. {drizzle-1.15.2 → drizzle-1.15.3}/pyproject.toml +2 -2
  6. {drizzle-1.15.2 → drizzle-1.15.3}/src/cdrizzleapi.c +8 -6
  7. {drizzle-1.15.2 → drizzle-1.15.3}/.coveragerc +0 -0
  8. {drizzle-1.15.2 → drizzle-1.15.3}/.flake8 +0 -0
  9. {drizzle-1.15.2 → drizzle-1.15.3}/.github/CODEOWNERS +0 -0
  10. {drizzle-1.15.2 → drizzle-1.15.3}/.github/dependabot.yml +0 -0
  11. {drizzle-1.15.2 → drizzle-1.15.3}/.github/workflows/build.yml +0 -0
  12. {drizzle-1.15.2 → drizzle-1.15.3}/.github/workflows/ci.yml +0 -0
  13. {drizzle-1.15.2 → drizzle-1.15.3}/.gitignore +0 -0
  14. {drizzle-1.15.2 → drizzle-1.15.3}/.readthedocs.yaml +0 -0
  15. {drizzle-1.15.2 → drizzle-1.15.3}/CODE_OF_CONDUCT.md +0 -0
  16. {drizzle-1.15.2 → drizzle-1.15.3}/LICENSE.rst +0 -0
  17. {drizzle-1.15.2 → drizzle-1.15.3}/MANIFEST.in +0 -0
  18. {drizzle-1.15.2 → drizzle-1.15.3}/README.rst +0 -0
  19. {drizzle-1.15.2 → drizzle-1.15.3}/docs/Makefile +0 -0
  20. {drizzle-1.15.2 → drizzle-1.15.3}/docs/_templates/autosummary/base.rst +0 -0
  21. {drizzle-1.15.2 → drizzle-1.15.3}/docs/_templates/autosummary/class.rst +0 -0
  22. {drizzle-1.15.2 → drizzle-1.15.3}/docs/_templates/autosummary/module.rst +0 -0
  23. {drizzle-1.15.2 → drizzle-1.15.3}/docs/conf.py +0 -0
  24. {drizzle-1.15.2 → drizzle-1.15.3}/docs/drizzle/api.rst +0 -0
  25. {drizzle-1.15.2 → drizzle-1.15.3}/docs/drizzle/index.rst +0 -0
  26. {drizzle-1.15.2 → drizzle-1.15.3}/docs/drizzle/user.rst +0 -0
  27. {drizzle-1.15.2 → drizzle-1.15.3}/docs/index.rst +0 -0
  28. {drizzle-1.15.2 → drizzle-1.15.3}/docs/make.bat +0 -0
  29. {drizzle-1.15.2 → drizzle-1.15.3}/docs/rtd_environment.yaml +0 -0
  30. {drizzle-1.15.2 → drizzle-1.15.3}/drizzle/__init__.py +0 -0
  31. {drizzle-1.15.2 → drizzle-1.15.3}/drizzle/calc_pixmap.py +0 -0
  32. {drizzle-1.15.2 → drizzle-1.15.3}/drizzle/doblot.py +0 -0
  33. {drizzle-1.15.2 → drizzle-1.15.3}/drizzle/dodrizzle.py +0 -0
  34. {drizzle-1.15.2 → drizzle-1.15.3}/drizzle/drizzle.py +0 -0
  35. {drizzle-1.15.2 → drizzle-1.15.3}/drizzle/tests/__init__.py +0 -0
  36. {drizzle-1.15.2 → drizzle-1.15.3}/drizzle/tests/test_cdrizzle.py +0 -0
  37. {drizzle-1.15.2 → drizzle-1.15.3}/drizzle/tests/test_file_io.py +0 -0
  38. {drizzle-1.15.2 → drizzle-1.15.3}/drizzle/tests/test_overlap_calc.py +0 -0
  39. {drizzle-1.15.2 → drizzle-1.15.3}/drizzle/tests/test_pixmap.py +0 -0
  40. {drizzle-1.15.2 → drizzle-1.15.3}/drizzle/util.py +0 -0
  41. {drizzle-1.15.2 → drizzle-1.15.3}/drizzle.egg-info/SOURCES.txt +0 -0
  42. {drizzle-1.15.2 → drizzle-1.15.3}/drizzle.egg-info/dependency_links.txt +0 -0
  43. {drizzle-1.15.2 → drizzle-1.15.3}/drizzle.egg-info/not-zip-safe +0 -0
  44. {drizzle-1.15.2 → drizzle-1.15.3}/drizzle.egg-info/requires.txt +0 -0
  45. {drizzle-1.15.2 → drizzle-1.15.3}/drizzle.egg-info/top_level.txt +0 -0
  46. {drizzle-1.15.2 → drizzle-1.15.3}/setup.cfg +0 -0
  47. {drizzle-1.15.2 → drizzle-1.15.3}/setup.py +0 -0
  48. {drizzle-1.15.2 → drizzle-1.15.3}/src/cdrizzleblot.c +0 -0
  49. {drizzle-1.15.2 → drizzle-1.15.3}/src/cdrizzleblot.h +0 -0
  50. {drizzle-1.15.2 → drizzle-1.15.3}/src/cdrizzlebox.c +0 -0
  51. {drizzle-1.15.2 → drizzle-1.15.3}/src/cdrizzlebox.h +0 -0
  52. {drizzle-1.15.2 → drizzle-1.15.3}/src/cdrizzlemap.c +0 -0
  53. {drizzle-1.15.2 → drizzle-1.15.3}/src/cdrizzlemap.h +0 -0
  54. {drizzle-1.15.2 → drizzle-1.15.3}/src/cdrizzleutil.c +0 -0
  55. {drizzle-1.15.2 → drizzle-1.15.3}/src/cdrizzleutil.h +0 -0
  56. {drizzle-1.15.2 → drizzle-1.15.3}/src/driz_portability.h +0 -0
  57. {drizzle-1.15.2 → drizzle-1.15.3}/src/tests/drizzletest.h +0 -0
  58. {drizzle-1.15.2 → drizzle-1.15.3}/src/tests/fct.h +0 -0
  59. {drizzle-1.15.2 → drizzle-1.15.3}/src/tests/pandokia_fct.h +0 -0
  60. {drizzle-1.15.2 → drizzle-1.15.3}/src/tests/utest_cdrizzle.c +0 -0
  61. {drizzle-1.15.2 → drizzle-1.15.3}/tox.ini +0 -0
@@ -4,7 +4,15 @@
4
4
  Release Notes
5
5
  =============
6
6
 
7
- 1.15.2 (2025-06-17)
7
+ 1.15.3 (2024-08-19)
8
+ ===================
9
+
10
+ - Fixed return type of ``PyInit_cdrizzle``. [#150]
11
+
12
+ - Allow ``context`` to be ``None`` in ``tdriz``. [#151]
13
+
14
+
15
+ 1.15.2 (2024-06-17)
8
16
  ===================
9
17
 
10
18
  - build wheels with Numpy 2.0 release candidate [#149]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: drizzle
3
- Version: 1.15.2
3
+ Version: 1.15.3
4
4
  Summary: A package for combining dithered images into a single image
5
5
  Author-email: STScI <help@stsci.edu>
6
6
  License: Copyright (C) 2011,2014 Association of Universities for Research in
@@ -39,7 +39,7 @@ Project-URL: Homepage, https://github.com/spacetelescope/drizzle
39
39
  Project-URL: Bug Tracker, https://github.com/spacetelescope/drizzle/issues
40
40
  Project-URL: Documentation, http://spacetelescope.github.io/drizzle/
41
41
  Project-URL: Source Code, https://github.com/spacetelescope/drizzle
42
- Requires-Python: >=3.10
42
+ Requires-Python: <3.13,>=3.10
43
43
  Description-Content-Type: text/x-rst
44
44
  License-File: LICENSE.rst
45
45
  Requires-Dist: numpy
@@ -796,3 +796,39 @@ def test_flux_conservation_distorted(kernel):
796
796
  atol=0.0,
797
797
  rtol=0.0001,
798
798
  )
799
+
800
+
801
+ def test_no_context_array():
802
+ """
803
+ Test that providing None for "outctx" is supported.
804
+ """
805
+ # initialize input:
806
+ insci = np.ones((200, 400), dtype=np.float32)
807
+ inwht = np.ones((200, 400), dtype=np.float32)
808
+ inwht[:, 150:155] = 0
809
+
810
+ # initialize output:
811
+ outsci = np.zeros((210, 410), dtype=np.float32)
812
+ outwht = np.zeros((210, 410), dtype=np.float32)
813
+ outctx = None
814
+
815
+ # define coordinate mapping:
816
+ pixmap = np.moveaxis(np.mgrid[1:201, 1:401][::-1], 0, -1)
817
+
818
+ # resample:
819
+ cdrizzle.tdriz(
820
+ insci, inwht, pixmap,
821
+ outsci, outwht, outctx,
822
+ uniqid=1,
823
+ xmin=0, xmax=400,
824
+ ymin=0, ymax=200,
825
+ pixfrac=1,
826
+ kernel='square',
827
+ in_units='cps',
828
+ expscale=1,
829
+ wtscale=1,
830
+ fillstr='INDEF',
831
+ )
832
+
833
+ # check that no pixel with 0 weight has any counts:
834
+ assert np.sum(np.abs(outsci[(outwht == 0)])) == 0.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: drizzle
3
- Version: 1.15.2
3
+ Version: 1.15.3
4
4
  Summary: A package for combining dithered images into a single image
5
5
  Author-email: STScI <help@stsci.edu>
6
6
  License: Copyright (C) 2011,2014 Association of Universities for Research in
@@ -39,7 +39,7 @@ Project-URL: Homepage, https://github.com/spacetelescope/drizzle
39
39
  Project-URL: Bug Tracker, https://github.com/spacetelescope/drizzle/issues
40
40
  Project-URL: Documentation, http://spacetelescope.github.io/drizzle/
41
41
  Project-URL: Source Code, https://github.com/spacetelescope/drizzle
42
- Requires-Python: >=3.10
42
+ Requires-Python: <3.13,>=3.10
43
43
  Description-Content-Type: text/x-rst
44
44
  License-File: LICENSE.rst
45
45
  Requires-Dist: numpy
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "drizzle"
3
3
  description = "A package for combining dithered images into a single image"
4
- requires-python = ">=3.10"
4
+ requires-python = ">=3.10,<3.13"
5
5
  authors = [
6
6
  { name = "STScI", email = "help@stsci.edu" },
7
7
  ]
@@ -43,7 +43,7 @@ docs = [
43
43
  requires = [
44
44
  "setuptools>=61.2",
45
45
  "setuptools_scm[toml]>=3.4",
46
- "numpy>=2.0.0rc2",
46
+ "numpy>=2.0.0",
47
47
  ]
48
48
  build-backend = "setuptools.build_meta"
49
49
 
@@ -130,11 +130,13 @@ tdriz(PyObject *obj UNUSED_PARAM, PyObject *args, PyObject *keywords)
130
130
  goto _exit;
131
131
  }
132
132
 
133
- con = (PyArrayObject *)PyArray_ContiguousFromAny(ocon, NPY_INT32, 2, 2);
134
- if (!con) {
135
- driz_error_set_message(&error, "Invalid context array");
136
- goto _exit;
137
- }
133
+ if (ocon != Py_None) {
134
+ con = (PyArrayObject *)PyArray_ContiguousFromAny(ocon, NPY_INT32, 2, 2);
135
+ if (!con) {
136
+ driz_error_set_message(&error, "Invalid context array");
137
+ goto _exit;
138
+ }
139
+ };
138
140
 
139
141
  /* Convert t`he fill value string */
140
142
 
@@ -614,7 +616,7 @@ static struct PyModuleDef moduledef = {
614
616
  NULL
615
617
  };
616
618
 
617
- PyMODINIT_FUNC *PyInit_cdrizzle(void)
619
+ PyMODINIT_FUNC PyInit_cdrizzle(void)
618
620
  {
619
621
  PyObject *m;
620
622
  m = PyModule_Create(&moduledef);
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes