drizzle 1.14.4__cp311-cp311-macosx_11_0_arm64.whl → 1.15.0__cp311-cp311-macosx_11_0_arm64.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-311-darwin.so +0 -0
- drizzle/dodrizzle.py +5 -2
- drizzle/drizzle.py +5 -2
- drizzle/tests/test_drizzle.py +0 -3
- drizzle/tests/test_file_io.py +0 -1
- drizzle/tests/test_overlap_calc.py +12 -4
- drizzle/tests/test_pixmap.py +1 -2
- drizzle-1.15.0.dist-info/LICENSE.rst +31 -0
- {drizzle-1.14.4.dist-info → drizzle-1.15.0.dist-info}/METADATA +47 -8
- drizzle-1.15.0.dist-info/RECORD +18 -0
- {drizzle-1.14.4.dist-info → drizzle-1.15.0.dist-info}/WHEEL +1 -1
- drizzle-1.14.4.dist-info/RECORD +0 -17
- {drizzle-1.14.4.dist-info → drizzle-1.15.0.dist-info}/top_level.txt +0 -0
|
Binary file
|
drizzle/dodrizzle.py
CHANGED
|
@@ -112,8 +112,11 @@ def dodrizzle(insci, input_wcs, inwht,
|
|
|
112
112
|
kernel: str, optional
|
|
113
113
|
The name of the kernel used to combine the input. The choice of
|
|
114
114
|
kernel controls the distribution of flux over the kernel. The kernel
|
|
115
|
-
names are: "square", "
|
|
116
|
-
and "lanczos3".
|
|
115
|
+
names are: "square", "turbo", "point", "gaussian", "lanczos2",
|
|
116
|
+
and "lanczos3".
|
|
117
|
+
|
|
118
|
+
.. warning::
|
|
119
|
+
The "gaussian" and "lanczos2/3" kernels **DO NOT** conserve flux.
|
|
117
120
|
|
|
118
121
|
fillval: str, optional
|
|
119
122
|
The value a pixel is set to in the output if the input image does
|
drizzle/drizzle.py
CHANGED
|
@@ -60,8 +60,11 @@ class Drizzle(object):
|
|
|
60
60
|
kernel : str, optional
|
|
61
61
|
The name of the kernel used to combine the inputs. The choice of
|
|
62
62
|
kernel controls the distribution of flux over the kernel. The kernel
|
|
63
|
-
names are: "square", "
|
|
64
|
-
and "lanczos3".
|
|
63
|
+
names are: "square", "turbo", "point", "gaussian", "lanczos2",
|
|
64
|
+
and "lanczos3".
|
|
65
|
+
|
|
66
|
+
.. warning::
|
|
67
|
+
The "gaussian" and "lanczos2/3" kernels **DO NOT** conserve flux.
|
|
65
68
|
|
|
66
69
|
fillval : str, otional
|
|
67
70
|
The value a pixel is set to in the output if the input image does
|
drizzle/tests/test_drizzle.py
CHANGED
drizzle/tests/test_file_io.py
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import os
|
|
2
1
|
import pytest
|
|
3
2
|
from math import sqrt
|
|
3
|
+
from itertools import product
|
|
4
4
|
|
|
5
5
|
import numpy as np
|
|
6
6
|
|
|
7
7
|
from drizzle.cdrizzle import clip_polygon, invert_pixmap
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
TEST_DIR = os.path.abspath(os.path.dirname(__file__))
|
|
11
|
-
DATA_DIR = os.path.join(TEST_DIR, 'data')
|
|
12
9
|
SQ2 = 1.0 / sqrt(2.0)
|
|
13
10
|
|
|
14
11
|
|
|
@@ -74,6 +71,17 @@ def test_invert_pixmap():
|
|
|
74
71
|
assert np.allclose(xyin, [xr, yr], atol=0.05)
|
|
75
72
|
|
|
76
73
|
|
|
74
|
+
def test_invert_small_pixmap():
|
|
75
|
+
yin, xin = np.indices((2, 2), dtype=float)
|
|
76
|
+
pixmap = np.dstack([xin, yin])
|
|
77
|
+
|
|
78
|
+
test_coords = list(product(*(2 * [[-0.5, 1.5]])))
|
|
79
|
+
|
|
80
|
+
for xr, yr in test_coords:
|
|
81
|
+
xyin = invert_pixmap(pixmap, [xr, yr], [[-0.5, 1.5], [-0.5, 1.5]])
|
|
82
|
+
assert np.allclose(xyin, [xr, yr], atol=0.05)
|
|
83
|
+
|
|
84
|
+
|
|
77
85
|
def test_poly_intersection_with_self():
|
|
78
86
|
p = [(0, 0), (1, 0), (1, 1), (0, 1)]
|
|
79
87
|
|
drizzle/tests/test_pixmap.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import os
|
|
1
|
+
import os
|
|
2
2
|
|
|
3
3
|
import numpy as np
|
|
4
4
|
from numpy.testing import assert_equal, assert_almost_equal
|
|
@@ -7,7 +7,6 @@ from astropy.io import fits
|
|
|
7
7
|
|
|
8
8
|
from drizzle import calc_pixmap
|
|
9
9
|
|
|
10
|
-
|
|
11
10
|
TEST_DIR = os.path.abspath(os.path.dirname(__file__))
|
|
12
11
|
DATA_DIR = os.path.join(TEST_DIR, 'data')
|
|
13
12
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
Copyright (C) 2011,2014 Association of Universities for Research in
|
|
2
|
+
Astronomy (AURA)
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
|
5
|
+
modification, are permitted provided that the following conditions
|
|
6
|
+
are met:
|
|
7
|
+
|
|
8
|
+
1. Redistributions of source code must retain the above
|
|
9
|
+
copyright notice, this list of conditions and the following
|
|
10
|
+
disclaimer.
|
|
11
|
+
|
|
12
|
+
2. Redistributions in binary form must reproduce the above
|
|
13
|
+
copyright notice, this list of conditions and the following
|
|
14
|
+
disclaimer in the documentation and/or other materials
|
|
15
|
+
provided with the distribution.
|
|
16
|
+
|
|
17
|
+
3. The name of AURA and its representatives may not be used to
|
|
18
|
+
endorse or promote products derived from this software without
|
|
19
|
+
specific prior written permission.
|
|
20
|
+
|
|
21
|
+
THIS SOFTWARE IS PROVIDED BY AURA ``AS IS'' AND ANY EXPRESS OR
|
|
22
|
+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
23
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
24
|
+
ARE DISCLAIMED. IN NO EVENT SHALL AURA BE LIABLE FOR ANY DIRECT,
|
|
25
|
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
26
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
27
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
28
|
+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
29
|
+
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
30
|
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
31
|
+
OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -1,14 +1,47 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: drizzle
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.15.0
|
|
4
4
|
Summary: A package for combining dithered images into a single image
|
|
5
5
|
Author-email: STScI <help@stsci.edu>
|
|
6
|
+
License: Copyright (C) 2011,2014 Association of Universities for Research in
|
|
7
|
+
Astronomy (AURA)
|
|
8
|
+
|
|
9
|
+
Redistribution and use in source and binary forms, with or without
|
|
10
|
+
modification, are permitted provided that the following conditions
|
|
11
|
+
are met:
|
|
12
|
+
|
|
13
|
+
1. Redistributions of source code must retain the above
|
|
14
|
+
copyright notice, this list of conditions and the following
|
|
15
|
+
disclaimer.
|
|
16
|
+
|
|
17
|
+
2. Redistributions in binary form must reproduce the above
|
|
18
|
+
copyright notice, this list of conditions and the following
|
|
19
|
+
disclaimer in the documentation and/or other materials
|
|
20
|
+
provided with the distribution.
|
|
21
|
+
|
|
22
|
+
3. The name of AURA and its representatives may not be used to
|
|
23
|
+
endorse or promote products derived from this software without
|
|
24
|
+
specific prior written permission.
|
|
25
|
+
|
|
26
|
+
THIS SOFTWARE IS PROVIDED BY AURA ``AS IS'' AND ANY EXPRESS OR
|
|
27
|
+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
28
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
29
|
+
ARE DISCLAIMED. IN NO EVENT SHALL AURA BE LIABLE FOR ANY DIRECT,
|
|
30
|
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
31
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
32
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
33
|
+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
34
|
+
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
35
|
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
36
|
+
OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
37
|
+
|
|
6
38
|
Project-URL: Homepage, https://github.com/spacetelescope/drizzle
|
|
7
39
|
Project-URL: Bug Tracker, https://github.com/spacetelescope/drizzle/issues
|
|
8
40
|
Project-URL: Documentation, http://spacetelescope.github.io/drizzle/
|
|
9
41
|
Project-URL: Source Code, https://github.com/spacetelescope/drizzle
|
|
10
|
-
Requires-Python: >=3.
|
|
42
|
+
Requires-Python: >=3.9
|
|
11
43
|
Description-Content-Type: text/x-rst
|
|
44
|
+
License-File: LICENSE.rst
|
|
12
45
|
Requires-Dist: numpy
|
|
13
46
|
Requires-Dist: astropy
|
|
14
47
|
Provides-Extra: docs
|
|
@@ -19,8 +52,6 @@ Requires-Dist: matplotlib ; extra == 'docs'
|
|
|
19
52
|
Requires-Dist: tomli ; (python_version < "3.11") and extra == 'docs'
|
|
20
53
|
Provides-Extra: test
|
|
21
54
|
Requires-Dist: pytest ; extra == 'test'
|
|
22
|
-
Requires-Dist: pytest-cov ; extra == 'test'
|
|
23
|
-
Requires-Dist: coverage ; extra == 'test'
|
|
24
55
|
|
|
25
56
|
drizzle Documentation
|
|
26
57
|
=====================
|
|
@@ -29,7 +60,7 @@ drizzle Documentation
|
|
|
29
60
|
:target: http://www.astropy.org
|
|
30
61
|
:alt: Powered by Astropy Badge
|
|
31
62
|
|
|
32
|
-
.. image:: https://codecov.io/github/spacetelescope/drizzle/branch/
|
|
63
|
+
.. image:: https://codecov.io/github/spacetelescope/drizzle/branch/main/graphs/badge.svg
|
|
33
64
|
:target: https://codecov.io/gh/spacetelescope/drizzle
|
|
34
65
|
:alt: Drizzle's Coverage Status
|
|
35
66
|
|
|
@@ -37,6 +68,14 @@ drizzle Documentation
|
|
|
37
68
|
:target: https://github.com/spacetelescope/drizzle/actions
|
|
38
69
|
:alt: CI Status
|
|
39
70
|
|
|
71
|
+
.. image:: https://readthedocs.org/projects/spacetelescope-drizzle/badge/?version=latest
|
|
72
|
+
:target: https://spacetelescope-drizzle.readthedocs.io/en/latest/?badge=latest
|
|
73
|
+
:alt: Documentation Status
|
|
74
|
+
|
|
75
|
+
.. image:: https://img.shields.io/pypi/v/drizzle.svg
|
|
76
|
+
:target: https://pypi.org/project/drizzle
|
|
77
|
+
:alt: PyPI Status
|
|
78
|
+
|
|
40
79
|
The ``drizzle`` library is a Python package for combining dithered images into a
|
|
41
80
|
single image. This library is derived from code used in DrizzlePac. Like
|
|
42
81
|
DrizzlePac, most of the code is implemented in the C language. The biggest
|
|
@@ -52,11 +91,11 @@ the new GWCS code.
|
|
|
52
91
|
Requirements
|
|
53
92
|
------------
|
|
54
93
|
|
|
55
|
-
- Python 3.
|
|
94
|
+
- Python 3.9 or later
|
|
56
95
|
|
|
57
|
-
- Numpy
|
|
96
|
+
- Numpy
|
|
58
97
|
|
|
59
|
-
- Astropy
|
|
98
|
+
- Astropy
|
|
60
99
|
|
|
61
100
|
The Drizzle Algorithm
|
|
62
101
|
---------------------
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
drizzle-1.15.0.dist-info/RECORD,,
|
|
2
|
+
drizzle-1.15.0.dist-info/WHEEL,sha256=qZ5gUYMG4t2JcLLcFLlOXld9g3WjqyANneXZkxLH8gU,110
|
|
3
|
+
drizzle-1.15.0.dist-info/LICENSE.rst,sha256=zbEvAxiq9xY9gvf78KeZaARrnOsTcqC9FeOC6tg8VbA,1474
|
|
4
|
+
drizzle-1.15.0.dist-info/top_level.txt,sha256=MA5uqwTj1sJBi-hCeQj9v3-sZ9nVUTe6bd_zGWTKy5A,8
|
|
5
|
+
drizzle-1.15.0.dist-info/METADATA,sha256=xWoAf_uAL6rgQwBA-8W1t4SiMu7x3c7Wz7yBUNzm1s8,16660
|
|
6
|
+
drizzle/calc_pixmap.py,sha256=psEyav1Yq5AHhN6eiBbw5bGczfPuzFKx-1Eain0xqAQ,1650
|
|
7
|
+
drizzle/drizzle.py,sha256=wOlGmSWsAgZrWWBX426VzYEXZXSktdTh88lywNcPsME,22872
|
|
8
|
+
drizzle/util.py,sha256=vtlLrpe1zZriph0_PEP1LfuCODhQlILt9yp76ZqBzB0,5743
|
|
9
|
+
drizzle/cdrizzle.cpython-311-darwin.so,sha256=BKQqPT_gQr_eo_8FpXJGDTvAVbMduyL7Wr7sJbBuOto,152699
|
|
10
|
+
drizzle/doblot.py,sha256=cQDtVzerm4PS8niXGSNxTgR2wm-DsBGJ86iD4PZoYY8,2496
|
|
11
|
+
drizzle/__init__.py,sha256=8vOMcRDCSKhRk4jkqjuLhr5U7ouNFqp7cUtM_sFQm1I,260
|
|
12
|
+
drizzle/dodrizzle.py,sha256=BwhadcgAzUg4_aJszv7P1kTMcKAGEN01h0zlYci-Yf8,6790
|
|
13
|
+
drizzle/tests/test_overlap_calc.py,sha256=1_T7C89JTsBtKoBjps9xBTDUZAyUQ8jJ-hr8IASLwrk,6800
|
|
14
|
+
drizzle/tests/test_drizzle.py,sha256=vaEa4UxkdRIaQUSkg3eagkQmldDj66zcy0lLRkPK0Wc,20366
|
|
15
|
+
drizzle/tests/test_pixmap.py,sha256=14RU1bv8eU8woQq0AcVO4L46linYyNU5dBkFlEv8qeA,2055
|
|
16
|
+
drizzle/tests/test_cdrizzle.py,sha256=8K3vKDhAAq4X4Bbe2YWIJ9O6ajQz-1jSRP5JTECKrhM,690
|
|
17
|
+
drizzle/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
|
+
drizzle/tests/test_file_io.py,sha256=Muh06uXT_DCaIsOns5TiFhlm7yGHEEC_0kfkbnm80ZU,4921
|
drizzle-1.14.4.dist-info/RECORD
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
drizzle-1.14.4.dist-info/RECORD,,
|
|
2
|
-
drizzle-1.14.4.dist-info/WHEEL,sha256=2nXsVu36abDiNGsH9Fliml6zEeomzRt7eNy1CE_Eupc,110
|
|
3
|
-
drizzle-1.14.4.dist-info/top_level.txt,sha256=MA5uqwTj1sJBi-hCeQj9v3-sZ9nVUTe6bd_zGWTKy5A,8
|
|
4
|
-
drizzle-1.14.4.dist-info/METADATA,sha256=rRA3rbU6vz_8apR78ta3gCgHTN1TOQYz5qZ5O38dWFU,14691
|
|
5
|
-
drizzle/calc_pixmap.py,sha256=psEyav1Yq5AHhN6eiBbw5bGczfPuzFKx-1Eain0xqAQ,1650
|
|
6
|
-
drizzle/drizzle.py,sha256=YvpRVhcY5xCty2Zs5aIz71L9fkqPhcW49gLKzGCJBYg,22810
|
|
7
|
-
drizzle/util.py,sha256=vtlLrpe1zZriph0_PEP1LfuCODhQlILt9yp76ZqBzB0,5743
|
|
8
|
-
drizzle/cdrizzle.cpython-311-darwin.so,sha256=Ck4ibr_BkTDN3JvURgCo-gwOJ0ajxt7TKaQQmp_NrmY,152571
|
|
9
|
-
drizzle/doblot.py,sha256=cQDtVzerm4PS8niXGSNxTgR2wm-DsBGJ86iD4PZoYY8,2496
|
|
10
|
-
drizzle/__init__.py,sha256=8vOMcRDCSKhRk4jkqjuLhr5U7ouNFqp7cUtM_sFQm1I,260
|
|
11
|
-
drizzle/dodrizzle.py,sha256=UaMQi8EP0DSO-QQ3LqDshUifNJhfxujjyyqk6AMcEmk,6734
|
|
12
|
-
drizzle/tests/test_overlap_calc.py,sha256=ajOPTbhlnJ-cw4zIheM44QIsTJYtOCIjRQCXrBl9eTM,6545
|
|
13
|
-
drizzle/tests/test_drizzle.py,sha256=yuQ3WSizYOK3MVcnSjtEo6btvp03ztgkE7hUk2-qYBo,20369
|
|
14
|
-
drizzle/tests/test_pixmap.py,sha256=S5xlcE6EpLcTux9veO2ZS0DKJXypUjyLuZRyFLiSErA,2061
|
|
15
|
-
drizzle/tests/test_cdrizzle.py,sha256=8K3vKDhAAq4X4Bbe2YWIJ9O6ajQz-1jSRP5JTECKrhM,690
|
|
16
|
-
drizzle/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
|
-
drizzle/tests/test_file_io.py,sha256=GAIQhQrTl6-d-2_xeEogz0Kek3K8G1w6vHmJ9UCYHU8,4922
|
|
File without changes
|