dkist-processing-math 2.2.0rc1__py3-none-any.whl → 2.2.2__py3-none-any.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.
- dkist_processing_math/__init__.py +5 -4
- dkist_processing_math/arithmetic.py +1 -0
- dkist_processing_math/feature.py +1 -0
- dkist_processing_math/linear_algebra.py +1 -0
- dkist_processing_math/statistics.py +6 -5
- dkist_processing_math/transform/__init__.py +1 -0
- dkist_processing_math/transform/affine.py +1 -0
- dkist_processing_math/transform/binary.py +1 -0
- dkist_processing_math/transform/binning.py +1 -0
- dkist_processing_math/transform/hough.py +1 -0
- {dkist_processing_math-2.2.0rc1.dist-info → dkist_processing_math-2.2.2.dist-info}/METADATA +10 -5
- dkist_processing_math-2.2.2.dist-info/RECORD +30 -0
- {dkist_processing_math-2.2.0rc1.dist-info → dkist_processing_math-2.2.2.dist-info}/WHEEL +1 -1
- docs/conf.py +1 -0
- changelog/18.misc.rst +0 -1
- changelog/19.misc.rst +0 -1
- changelog/20.feature.rst +0 -2
- dkist_processing_math-2.2.0rc1.dist-info/RECORD +0 -33
- {dkist_processing_math-2.2.0rc1.dist-info → dkist_processing_math-2.2.2.dist-info}/top_level.txt +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"""init."""
|
|
2
|
-
|
|
3
|
-
from
|
|
2
|
+
|
|
3
|
+
from importlib.metadata import PackageNotFoundError
|
|
4
|
+
from importlib.metadata import version
|
|
4
5
|
|
|
5
6
|
try:
|
|
6
|
-
__version__ =
|
|
7
|
-
except
|
|
7
|
+
__version__ = version(distribution_name=__name__)
|
|
8
|
+
except PackageNotFoundError:
|
|
8
9
|
# package is not installed
|
|
9
10
|
__version__ = "unknown"
|
dkist_processing_math/feature.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"""Statistics."""
|
|
2
|
+
|
|
2
3
|
from typing import Iterable
|
|
3
4
|
from typing import Union
|
|
4
5
|
|
|
@@ -65,7 +66,7 @@ def stddev_numpy_arrays(arrays: Iterable[np.ndarray]) -> np.ndarray:
|
|
|
65
66
|
Parameters
|
|
66
67
|
----------
|
|
67
68
|
arrays
|
|
68
|
-
The arrays to be to compute the standard deviation of
|
|
69
|
+
The arrays to be to compute the standard deviation of. Must be an Iterator of at least two arrays.
|
|
69
70
|
|
|
70
71
|
Returns
|
|
71
72
|
-------
|
|
@@ -82,16 +83,16 @@ def stddev_numpy_arrays(arrays: Iterable[np.ndarray]) -> np.ndarray:
|
|
|
82
83
|
for array in arrays:
|
|
83
84
|
count += 1
|
|
84
85
|
try:
|
|
85
|
-
|
|
86
|
+
diff_from_prev_mean = array - running_mean
|
|
86
87
|
except ValueError:
|
|
87
88
|
raise ValueError(
|
|
88
89
|
f"All arrays must be the same shape. "
|
|
89
90
|
f"Shape of initial array = {running_mean.shape} "
|
|
90
91
|
f"Shape of current array = {array.shape}"
|
|
91
92
|
)
|
|
92
|
-
running_mean +=
|
|
93
|
-
|
|
94
|
-
running_M2 +=
|
|
93
|
+
running_mean += diff_from_prev_mean / count
|
|
94
|
+
diff_from_current_mean = array - running_mean
|
|
95
|
+
running_M2 += diff_from_prev_mean * diff_from_current_mean
|
|
95
96
|
|
|
96
97
|
match count:
|
|
97
98
|
case 0:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: dkist-processing-math
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.2
|
|
4
4
|
Summary: Common math functionality used in the DKIST calibrations suite
|
|
5
5
|
Author-email: NSO / AURA <dkistdc@nso.edu>
|
|
6
6
|
License: BSD-3-Clause
|
|
@@ -10,10 +10,10 @@ Project-URL: Documentation, https://docs.dkist.nso.edu/projects/math
|
|
|
10
10
|
Project-URL: Help, https://nso.atlassian.net/servicedesk/customer/portal/5
|
|
11
11
|
Classifier: Programming Language :: Python
|
|
12
12
|
Classifier: Programming Language :: Python :: 3
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.
|
|
14
|
-
Requires-Python: >=3.
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
+
Requires-Python: >=3.13
|
|
15
15
|
Description-Content-Type: text/x-rst
|
|
16
|
-
Requires-Dist: dkist-processing-common>=
|
|
16
|
+
Requires-Dist: dkist-processing-common>=13.0.0
|
|
17
17
|
Requires-Dist: numpy>=1.24.0
|
|
18
18
|
Requires-Dist: scikit-image>=0.21.0
|
|
19
19
|
Requires-Dist: scipy>=1.11.0
|
|
@@ -36,6 +36,8 @@ Requires-Dist: dkist-sphinx-theme; extra == "docs"
|
|
|
36
36
|
dkist-processing-math
|
|
37
37
|
=====================
|
|
38
38
|
|
|
39
|
+
|codecov|
|
|
40
|
+
|
|
39
41
|
dkist-processing-math contains the math functions used throughout the DKIST data processing software stack.
|
|
40
42
|
|
|
41
43
|
|
|
@@ -105,3 +107,6 @@ then the Bitbucket pipeline will fail. To be able to use the same tag you must d
|
|
|
105
107
|
# Re-tag with the same version
|
|
106
108
|
git tag vWHATEVER.THE.VERSION
|
|
107
109
|
git push --tags origin main
|
|
110
|
+
|
|
111
|
+
.. |codecov| image:: https://codecov.io/bb/dkistdc/dkist-processing-math/graph/badge.svg?token=N0SF93JM6R
|
|
112
|
+
:target: https://codecov.io/bb/dkistdc/dkist-processing-math
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
changelog/.gitempty,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
dkist_processing_math/__init__.py,sha256=z2HXBhrQyX-yBiLTWnPUgVevMA7QI_3ZdJKn3ev1F8I,252
|
|
3
|
+
dkist_processing_math/arithmetic.py,sha256=WgO3lQI4GIVVOiXb_F7tQCZ5XQKzm_kF_zcy_3IL964,3695
|
|
4
|
+
dkist_processing_math/feature.py,sha256=xdhPkkoOX9aO50BeMjU_2vKwAOG1AUBA3TvfHzZuP6A,2004
|
|
5
|
+
dkist_processing_math/linear_algebra.py,sha256=yCA6ZuNORFnAyXywj73QMmGCpv9ZC2FSoMEPc8wToQY,4180
|
|
6
|
+
dkist_processing_math/statistics.py,sha256=KkZTy8wdslPSQ5qP4z_We60Vizaxqna7rmMwxkoj36U,3178
|
|
7
|
+
dkist_processing_math/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
+
dkist_processing_math/tests/conftest.py,sha256=TV0o-R2lU1MvZleme0w-akcgO5wOTlFNKhjSlmDwkqg,1593
|
|
9
|
+
dkist_processing_math/tests/test_arithmetic.py,sha256=18YI4Fr_m0KU0dYR8_ef7CMmnOlb-Zc4I8ERgoYdxdA,5658
|
|
10
|
+
dkist_processing_math/tests/test_feature.py,sha256=ZB8r_IUrAyTAlKbxEXwr8Q2zS7KPmlJhaU1l0guK0Xc,2311
|
|
11
|
+
dkist_processing_math/tests/test_linear_algebra.py,sha256=k-XqIIBPsenNMKqo2nQnDkkN-6T1nvVT8BrJnupAIFU,6495
|
|
12
|
+
dkist_processing_math/tests/test_statistics.py,sha256=N0S8C9Bwhd1VgCAkm6RqIZF_Ulwrcet9wqfbndw8KZs,2998
|
|
13
|
+
dkist_processing_math/tests/test_transform.py,sha256=M761Yceh3FKV00udvb6_AeKuyBpQrUAG-mLfO-PbHmc,20253
|
|
14
|
+
dkist_processing_math/transform/__init__.py,sha256=dFAi8bpLDa1Gp-kNrAsjcLnkRqyFNYbfzafC6gUUXHs,618
|
|
15
|
+
dkist_processing_math/transform/affine.py,sha256=2U_qG700otfz5ePjbaa_m47ttRYRaNAj71W9NtcZ4xU,8596
|
|
16
|
+
dkist_processing_math/transform/binary.py,sha256=a_wYYORIvfD8AmQor3t5fMO8LwoFondyX-5awGQeUZk,1207
|
|
17
|
+
dkist_processing_math/transform/binning.py,sha256=--CUP0nYxrWXbou48UJg8liSQJkwxBlDsKRXZTvhRCU,5173
|
|
18
|
+
dkist_processing_math/transform/hough.py,sha256=CUGkoFNLSTeCOF_0L-hT7BtPomB-oAdc0VVb_UfKGiY,1371
|
|
19
|
+
docs/Makefile,sha256=qnlVz6PuBqE39NfHWuUnHhNEA-EFgT2-WJNNNy9ttfk,4598
|
|
20
|
+
docs/changelog.rst,sha256=S2jPASsWlQxSlAPqdvNrYvhk9k3FcFWNXFNDYXBSjl4,120
|
|
21
|
+
docs/conf.py,sha256=Yyp-X_7Pb412BQhnvlsDvdYFZIW3J3gIhTfigeVkdwo,1836
|
|
22
|
+
docs/index.rst,sha256=jHz-xZEN52Q5X79VRjvoBlyuc_hHp1whKRlpykztIQc,106
|
|
23
|
+
docs/landing_page.rst,sha256=JCyR9SRhYS6zeEUlonIzko1kQ0tAFDIfi7pCoQanZeA,251
|
|
24
|
+
docs/make.bat,sha256=mBAhtURwhQ7yc95pqwJzlhqBSvRknr1aqZ5s8NKvdKs,4513
|
|
25
|
+
docs/requirements.txt,sha256=Kbl_X4c7RQZw035YTeNB63We6I7pvXFU4T0Uflp2yDY,29
|
|
26
|
+
licenses/LICENSE.rst,sha256=piZaQplkzOMmH1NXg6QIdo9wwo9pPCoHkvm2-DmH76E,1462
|
|
27
|
+
dkist_processing_math-2.2.2.dist-info/METADATA,sha256=lHuOull8f05fjgkr_N7NwKMLiojK04JPN0WX3u4f0dw,4467
|
|
28
|
+
dkist_processing_math-2.2.2.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
29
|
+
dkist_processing_math-2.2.2.dist-info/top_level.txt,sha256=7NeFrOlR4xhZ3LMT4jN99LQugukjr6l9u3w_s6b-uO4,46
|
|
30
|
+
dkist_processing_math-2.2.2.dist-info/RECORD,,
|
docs/conf.py
CHANGED
changelog/18.misc.rst
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Update bitbucket pipelines to use common scripts for checking for changelog snippets and verifying doc builds.
|
changelog/19.misc.rst
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Update Bitbucket pipelines to use execute script for standard steps.
|
changelog/20.feature.rst
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
changelog/.gitempty,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
changelog/18.misc.rst,sha256=nhzzLztW_sNOvZ0EeO0jCOpMf1StXdl6IpsJWS6sc4I,111
|
|
3
|
-
changelog/19.misc.rst,sha256=oCFAWH7tQxLKxn6VfQBzAocWj903IvwXlgotpVuRSXY,69
|
|
4
|
-
changelog/20.feature.rst,sha256=5gRsTu_0ql426Z1Wn-x9IXiALTiIZYpczx3_9Y-HYR4,195
|
|
5
|
-
dkist_processing_math/__init__.py,sha256=Mf7liCQC9M5YgFrz2NZ0dZ5smvcuw47ww6MC9mijAHw,249
|
|
6
|
-
dkist_processing_math/arithmetic.py,sha256=h8E4DUBGQLDUiNWmZb2kZRrLMmjEpdl1S_mIi3ntZ6w,3694
|
|
7
|
-
dkist_processing_math/feature.py,sha256=vwrkXBlK7wM6-KFaWxhBsMpHiHbpsWOiuGOhf3PRLSY,2003
|
|
8
|
-
dkist_processing_math/linear_algebra.py,sha256=3ycmWklgLI89NjQgwgY81Zv1m_L4jJXHnt70TzQDVWQ,4179
|
|
9
|
-
dkist_processing_math/statistics.py,sha256=_N6LPRTAFT6lQXv8DJtzK6icIHT3JsM4YWR7JfOSiHA,3058
|
|
10
|
-
dkist_processing_math/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
-
dkist_processing_math/tests/conftest.py,sha256=TV0o-R2lU1MvZleme0w-akcgO5wOTlFNKhjSlmDwkqg,1593
|
|
12
|
-
dkist_processing_math/tests/test_arithmetic.py,sha256=18YI4Fr_m0KU0dYR8_ef7CMmnOlb-Zc4I8ERgoYdxdA,5658
|
|
13
|
-
dkist_processing_math/tests/test_feature.py,sha256=ZB8r_IUrAyTAlKbxEXwr8Q2zS7KPmlJhaU1l0guK0Xc,2311
|
|
14
|
-
dkist_processing_math/tests/test_linear_algebra.py,sha256=k-XqIIBPsenNMKqo2nQnDkkN-6T1nvVT8BrJnupAIFU,6495
|
|
15
|
-
dkist_processing_math/tests/test_statistics.py,sha256=N0S8C9Bwhd1VgCAkm6RqIZF_Ulwrcet9wqfbndw8KZs,2998
|
|
16
|
-
dkist_processing_math/tests/test_transform.py,sha256=M761Yceh3FKV00udvb6_AeKuyBpQrUAG-mLfO-PbHmc,20253
|
|
17
|
-
dkist_processing_math/transform/__init__.py,sha256=gZGyavJgtuquv8vc_VkXraJjz_8MkDTk9UwGQhthHwM,617
|
|
18
|
-
dkist_processing_math/transform/affine.py,sha256=wJvL-R3DMpOmEnCKL8YI8eRUE7enH2Vg-mSLLpfCEoE,8595
|
|
19
|
-
dkist_processing_math/transform/binary.py,sha256=64FhSBScuVCykHYA8Oh99wQodqVUiPdbtpFGIMl5BX8,1206
|
|
20
|
-
dkist_processing_math/transform/binning.py,sha256=1zSX4SIJnc_LiQY-oOCeZhy-zGAp5ALJFXhJ7Pz6uDI,5172
|
|
21
|
-
dkist_processing_math/transform/hough.py,sha256=o0l9YaYgMBqeKACHT8lZ4PbMZVJwjD-cE1kKrFg8mog,1370
|
|
22
|
-
docs/Makefile,sha256=qnlVz6PuBqE39NfHWuUnHhNEA-EFgT2-WJNNNy9ttfk,4598
|
|
23
|
-
docs/changelog.rst,sha256=S2jPASsWlQxSlAPqdvNrYvhk9k3FcFWNXFNDYXBSjl4,120
|
|
24
|
-
docs/conf.py,sha256=wo1DmmqFac7fMpPLXZrY69vCXb3cji4Y7eYWOphUu_w,1835
|
|
25
|
-
docs/index.rst,sha256=jHz-xZEN52Q5X79VRjvoBlyuc_hHp1whKRlpykztIQc,106
|
|
26
|
-
docs/landing_page.rst,sha256=JCyR9SRhYS6zeEUlonIzko1kQ0tAFDIfi7pCoQanZeA,251
|
|
27
|
-
docs/make.bat,sha256=mBAhtURwhQ7yc95pqwJzlhqBSvRknr1aqZ5s8NKvdKs,4513
|
|
28
|
-
docs/requirements.txt,sha256=Kbl_X4c7RQZw035YTeNB63We6I7pvXFU4T0Uflp2yDY,29
|
|
29
|
-
licenses/LICENSE.rst,sha256=piZaQplkzOMmH1NXg6QIdo9wwo9pPCoHkvm2-DmH76E,1462
|
|
30
|
-
dkist_processing_math-2.2.0rc1.dist-info/METADATA,sha256=20cGjV34kHUjkZI-Nm67oi8Y6VbYUg2_V1ELyN_kl08,4287
|
|
31
|
-
dkist_processing_math-2.2.0rc1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
32
|
-
dkist_processing_math-2.2.0rc1.dist-info/top_level.txt,sha256=7NeFrOlR4xhZ3LMT4jN99LQugukjr6l9u3w_s6b-uO4,46
|
|
33
|
-
dkist_processing_math-2.2.0rc1.dist-info/RECORD,,
|
{dkist_processing_math-2.2.0rc1.dist-info → dkist_processing_math-2.2.2.dist-info}/top_level.txt
RENAMED
|
File without changes
|