drizzle 1.15.2__cp312-cp312-macosx_10_9_x86_64.whl → 1.15.3__cp312-cp312-macosx_10_9_x86_64.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.
- drizzle/cdrizzle.cpython-312-darwin.so +0 -0
- drizzle/tests/test_drizzle.py +36 -0
- {drizzle-1.15.2.dist-info → drizzle-1.15.3.dist-info}/METADATA +2 -2
- {drizzle-1.15.2.dist-info → drizzle-1.15.3.dist-info}/RECORD +7 -7
- {drizzle-1.15.2.dist-info → drizzle-1.15.3.dist-info}/WHEEL +1 -1
- {drizzle-1.15.2.dist-info → drizzle-1.15.3.dist-info}/LICENSE.rst +0 -0
- {drizzle-1.15.2.dist-info → drizzle-1.15.3.dist-info}/top_level.txt +0 -0
|
Binary file
|
drizzle/tests/test_drizzle.py
CHANGED
|
@@ -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.
|
|
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:
|
|
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,17 +1,17 @@
|
|
|
1
|
-
drizzle-1.15.
|
|
2
|
-
drizzle-1.15.
|
|
3
|
-
drizzle-1.15.
|
|
4
|
-
drizzle-1.15.
|
|
5
|
-
drizzle-1.15.
|
|
1
|
+
drizzle-1.15.3.dist-info/RECORD,,
|
|
2
|
+
drizzle-1.15.3.dist-info/WHEEL,sha256=EahQufTUtBnyvrECh1gpiswxGRRuu1fCWmVm0K3Ige4,110
|
|
3
|
+
drizzle-1.15.3.dist-info/LICENSE.rst,sha256=zbEvAxiq9xY9gvf78KeZaARrnOsTcqC9FeOC6tg8VbA,1474
|
|
4
|
+
drizzle-1.15.3.dist-info/top_level.txt,sha256=MA5uqwTj1sJBi-hCeQj9v3-sZ9nVUTe6bd_zGWTKy5A,8
|
|
5
|
+
drizzle-1.15.3.dist-info/METADATA,sha256=XleVfrX-ODwad--DQNgIgCKyd-tvCFTMRVCN21WSVQE,16668
|
|
6
6
|
drizzle/calc_pixmap.py,sha256=psEyav1Yq5AHhN6eiBbw5bGczfPuzFKx-1Eain0xqAQ,1650
|
|
7
7
|
drizzle/drizzle.py,sha256=wOlGmSWsAgZrWWBX426VzYEXZXSktdTh88lywNcPsME,22872
|
|
8
8
|
drizzle/util.py,sha256=vtlLrpe1zZriph0_PEP1LfuCODhQlILt9yp76ZqBzB0,5743
|
|
9
9
|
drizzle/doblot.py,sha256=cQDtVzerm4PS8niXGSNxTgR2wm-DsBGJ86iD4PZoYY8,2496
|
|
10
10
|
drizzle/__init__.py,sha256=8vOMcRDCSKhRk4jkqjuLhr5U7ouNFqp7cUtM_sFQm1I,260
|
|
11
11
|
drizzle/dodrizzle.py,sha256=BwhadcgAzUg4_aJszv7P1kTMcKAGEN01h0zlYci-Yf8,6790
|
|
12
|
-
drizzle/cdrizzle.cpython-312-darwin.so,sha256=
|
|
12
|
+
drizzle/cdrizzle.cpython-312-darwin.so,sha256=Ww1RWzIKRz1NlWkCS3tiGRZ3Ix1pYbqUMKgn0d-bbHw,154016
|
|
13
13
|
drizzle/tests/test_overlap_calc.py,sha256=p679e3zc68lJkQb42fVSylGHgBosroG8VIlqp9LdAfg,6800
|
|
14
|
-
drizzle/tests/test_drizzle.py,sha256=
|
|
14
|
+
drizzle/tests/test_drizzle.py,sha256=faMXI1YFWxyn0suizqeuiyGTAdTn_3MmWRHR7xy_LxE,25312
|
|
15
15
|
drizzle/tests/test_pixmap.py,sha256=14RU1bv8eU8woQq0AcVO4L46linYyNU5dBkFlEv8qeA,2055
|
|
16
16
|
drizzle/tests/test_cdrizzle.py,sha256=8K3vKDhAAq4X4Bbe2YWIJ9O6ajQz-1jSRP5JTECKrhM,690
|
|
17
17
|
drizzle/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
File without changes
|
|
File without changes
|