drizzle 1.15.1__cp312-cp312-win_amd64.whl → 1.15.3__cp312-cp312-win_amd64.whl

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.

Binary file
@@ -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
@@ -9,7 +9,7 @@ from drizzle.cdrizzle import clip_polygon, invert_pixmap
9
9
  SQ2 = 1.0 / sqrt(2.0)
10
10
 
11
11
 
12
- def _is_poly_eq(p1, p2, rtol=0, atol=1e-12):
12
+ def _is_poly_eq(p1, p2, rtol=0, atol=4e-12):
13
13
  if len(p1) != len(p2):
14
14
  return False
15
15
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: drizzle
3
- Version: 1.15.1
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.9
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
@@ -91,7 +91,7 @@ the new GWCS code.
91
91
  Requirements
92
92
  ------------
93
93
 
94
- - Python 3.9 or later
94
+ - Python 3.10 or later
95
95
 
96
96
  - Numpy
97
97
 
@@ -1,18 +1,18 @@
1
1
  drizzle/__init__.py,sha256=7M-hCW6QcKqJl0bdkCixW08PBJzLdMz6UTTzz2CKbgc,271
2
2
  drizzle/calc_pixmap.py,sha256=pM4Wvsjzc_gzb7NR23kLoxQy426ZXZF07tq59qqfEyA,1702
3
- drizzle/cdrizzle.cp312-win_amd64.pyd,sha256=gRjPf08uzYsgb2tUxRBNkWFR8kgzy1EaSoeZFDyNU9o,100352
3
+ drizzle/cdrizzle.cp312-win_amd64.pyd,sha256=Q5Px7kpeNTQKMcK17RWnq7c9ZGHJl1YEw_wLpEAm4L4,102400
4
4
  drizzle/doblot.py,sha256=Qr5FdfV9-GY93Do5Jb9VAX-Y7M4EusIzAwwneV76Ai4,2576
5
5
  drizzle/dodrizzle.py,sha256=3h8FE46FoHUdt9T4FjXlSOQvGU_OQZm3FRXX33I2XDM,6979
6
6
  drizzle/drizzle.py,sha256=jnsv5GUX-NZHJN3GQhkWmmxDp1QK9iSFeYDpgNpeVVY,23441
7
7
  drizzle/util.py,sha256=8qPA7C8nqRL7vAjJ3Ip6yLeaIauJXLtV9JBAzIDUNiY,5999
8
8
  drizzle/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  drizzle/tests/test_cdrizzle.py,sha256=JHwVwOQ-evOD1XMPyKStxODy3AGwzXa6PMDGJldmFik,714
10
- drizzle/tests/test_drizzle.py,sha256=n8rXSIL0hqoLs9p9zb106u4e1TKYdl89824lzRJO2UM,25193
10
+ drizzle/tests/test_drizzle.py,sha256=4vCcGPVIvQZGgZJ6kPGl6luTww6IcVYWOkLbFbVtcR4,26146
11
11
  drizzle/tests/test_file_io.py,sha256=z6deDDdwGog03wC96poDDWoqafB2cfyR9q0PJzAaJ_g,5094
12
- drizzle/tests/test_overlap_calc.py,sha256=0vtswuOXa2bP4GLm2c5q1tuIWdXePfZ_6Xd0-odKia0,7062
12
+ drizzle/tests/test_overlap_calc.py,sha256=Fv5ntD7hbFF_8vkiTrHeTWP7hgjQ7kkvkeY_IOZ8_aw,7062
13
13
  drizzle/tests/test_pixmap.py,sha256=B8Xj0MjpeP6Tc2vIL7gV7kBDmyDdo5SEafxGHrTnESM,2131
14
- drizzle-1.15.1.dist-info/LICENSE.rst,sha256=sUXj5W73D9TcOw5ZXaDdcthYdY2b2dTJPsxBuZTOYWQ,1505
15
- drizzle-1.15.1.dist-info/METADATA,sha256=Wp5ryvxU7ziai4kF2NLck4-Aa0F1rrLatIfzDi1bn3w,17024
16
- drizzle-1.15.1.dist-info/WHEEL,sha256=j9Aissza3750LQHFAQyYerNjmkEON1-8w_RaZNFtKSs,102
17
- drizzle-1.15.1.dist-info/top_level.txt,sha256=MA5uqwTj1sJBi-hCeQj9v3-sZ9nVUTe6bd_zGWTKy5A,8
18
- drizzle-1.15.1.dist-info/RECORD,,
14
+ drizzle-1.15.3.dist-info/LICENSE.rst,sha256=sUXj5W73D9TcOw5ZXaDdcthYdY2b2dTJPsxBuZTOYWQ,1505
15
+ drizzle-1.15.3.dist-info/METADATA,sha256=iZ9_phqXeqKslXGnVjeab6eX8PilLIIiKZss3x1uZ-4,17032
16
+ drizzle-1.15.3.dist-info/WHEEL,sha256=NF4en8_0fm6FIbEFXveGM7BhfTtSfpstffwInPM31vI,101
17
+ drizzle-1.15.3.dist-info/top_level.txt,sha256=MA5uqwTj1sJBi-hCeQj9v3-sZ9nVUTe6bd_zGWTKy5A,8
18
+ drizzle-1.15.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: setuptools (72.2.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp312-cp312-win_amd64
5
5