teareduce 0.4.9__py3-none-any.whl → 0.5.0__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.
- teareduce/cleanest/__main__.py +18 -6
- teareduce/cleanest/cosmicraycleanerapp.py +586 -85
- teareduce/cleanest/definitions.py +51 -0
- teareduce/cleanest/find_closest_true.py +44 -0
- teareduce/cleanest/imagedisplay.py +155 -0
- teareduce/cleanest/interpolation_a.py +83 -0
- teareduce/cleanest/interpolation_x.py +80 -0
- teareduce/cleanest/interpolation_y.py +81 -0
- teareduce/cleanest/interpolationeditor.py +207 -0
- teareduce/cleanest/parametereditor.py +251 -0
- teareduce/cleanest/reviewcosmicray.py +351 -267
- teareduce/cookbook/get_cookbook_file.py +5 -0
- teareduce/version.py +1 -1
- {teareduce-0.4.9.dist-info → teareduce-0.5.0.dist-info}/METADATA +3 -1
- {teareduce-0.4.9.dist-info → teareduce-0.5.0.dist-info}/RECORD +19 -11
- {teareduce-0.4.9.dist-info → teareduce-0.5.0.dist-info}/WHEEL +0 -0
- {teareduce-0.4.9.dist-info → teareduce-0.5.0.dist-info}/entry_points.txt +0 -0
- {teareduce-0.4.9.dist-info → teareduce-0.5.0.dist-info}/licenses/LICENSE.txt +0 -0
- {teareduce-0.4.9.dist-info → teareduce-0.5.0.dist-info}/top_level.txt +0 -0
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
# License-Filename: LICENSE.txt
|
|
8
8
|
|
|
9
9
|
import os
|
|
10
|
+
from pathlib import Path
|
|
10
11
|
import requests
|
|
11
12
|
|
|
12
13
|
|
|
@@ -28,6 +29,10 @@ def get_cookbook_file(file_path, verbose=True):
|
|
|
28
29
|
url = f"https://raw.githubusercontent.com/nicocardiel/teareduce-cookbook/main/{file_path}"
|
|
29
30
|
response = requests.get(url)
|
|
30
31
|
local_filename = os.path.basename(file_path)
|
|
32
|
+
if Path(local_filename).is_file():
|
|
33
|
+
if verbose:
|
|
34
|
+
print(f"File {local_filename} already exists locally. Skipping download.")
|
|
35
|
+
return
|
|
31
36
|
with open(local_filename, "wb") as f:
|
|
32
37
|
f.write(response.content)
|
|
33
38
|
if verbose:
|
teareduce/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: teareduce
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.0
|
|
4
4
|
Summary: Utilities for astronomical data reduction
|
|
5
5
|
Author-email: Nicolás Cardiel <cardiel@ucm.es>
|
|
6
6
|
License: GPL-3.0-or-later
|
|
@@ -23,6 +23,8 @@ Requires-Dist: astropy
|
|
|
23
23
|
Requires-Dist: lmfit
|
|
24
24
|
Requires-Dist: matplotlib
|
|
25
25
|
Requires-Dist: numpy>=1.22
|
|
26
|
+
Requires-Dist: rich
|
|
27
|
+
Requires-Dist: rich-argparse
|
|
26
28
|
Requires-Dist: scipy
|
|
27
29
|
Requires-Dist: tqdm
|
|
28
30
|
Provides-Extra: test
|
|
@@ -15,22 +15,30 @@ teareduce/sdistortion.py,sha256=5ZsZn4vD5Sw2aoqO8-NIOH7H89Zmh7ZDkow6YbAotHU,5916
|
|
|
15
15
|
teareduce/simulateccdexposure.py,sha256=cdbpca6GVuM3d7R1LGzlIZZvjTq_jzrlkk_Cli7aouQ,24636
|
|
16
16
|
teareduce/sliceregion.py,sha256=Jdf8XvmGaY_vaY1cneTaRtSOYPxpUsJm9cXJDDMa0YM,18626
|
|
17
17
|
teareduce/statsummary.py,sha256=VTNAnBV8z6suqiyB2Lhw3YjUUOjlmwUPX3enkOKRF54,5422
|
|
18
|
-
teareduce/version.py,sha256=
|
|
18
|
+
teareduce/version.py,sha256=2Y5F6s1-LbltvSto197jfUfolKF_i_LCEoAq7wi0lSc,419
|
|
19
19
|
teareduce/wavecal.py,sha256=2MewWz5Y3ms41c305UtWOM_LaLNdk1mugDXCtzf-fSw,68586
|
|
20
20
|
teareduce/write_array_to_fits.py,sha256=kWDrEH9coJ1yIu56oQJpWtDqJL4c8HGmssE9jle4e94,617
|
|
21
21
|
teareduce/zscale.py,sha256=SDgmcDD2N5GvDn46JADCgTQJPBF_N_jSKMHoeTz9Nsw,1152
|
|
22
22
|
teareduce/cleanest/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
|
-
teareduce/cleanest/__main__.py,sha256=
|
|
24
|
-
teareduce/cleanest/cosmicraycleanerapp.py,sha256=
|
|
25
|
-
teareduce/cleanest/
|
|
23
|
+
teareduce/cleanest/__main__.py,sha256=mobw6PW6JauOBKt-0eNvUH0UCC_D-AjrbTlzfAu7joY,1732
|
|
24
|
+
teareduce/cleanest/cosmicraycleanerapp.py,sha256=k0E72E4lOwYmQ8IKRhtyuQIHsKxHjVA2V5hJEFKnQDo,33141
|
|
25
|
+
teareduce/cleanest/definitions.py,sha256=zTF3O0dC1VeU43MZqYA6WLk8NRsNL07IHW9NvWXHyJM,1689
|
|
26
|
+
teareduce/cleanest/find_closest_true.py,sha256=mWdIvhipzAXDRKfePDrP7f0lP4U48cckpHiKwiB4jHI,1320
|
|
27
|
+
teareduce/cleanest/imagedisplay.py,sha256=4FhoRcyskj_F6gaza4U37sLODpe-Sud3sunM8_-p5iY,5877
|
|
28
|
+
teareduce/cleanest/interpolation_a.py,sha256=MpZ41WV3ck5Q2DDmgkeMhIqG-VNVD97lN9SU1tUJJmA,3266
|
|
29
|
+
teareduce/cleanest/interpolation_x.py,sha256=qp1JU5_w8xrsyo33cK2U1gYf4Y49LewDJ8-s1pxh93s,2801
|
|
30
|
+
teareduce/cleanest/interpolation_y.py,sha256=ra6rdvUcwG5hVqF7id5rLtSE8amgvjSYFSrgjhwSgIQ,2820
|
|
31
|
+
teareduce/cleanest/interpolationeditor.py,sha256=RjAmfgpNOFivot9nz9d87Xno-hxmtDdNH29oIvn5xeY,8000
|
|
32
|
+
teareduce/cleanest/parametereditor.py,sha256=XxGRLqm8Rcy7vkCSMVPrBxLeqFWFFWNaIklr7bmS7eU,10058
|
|
33
|
+
teareduce/cleanest/reviewcosmicray.py,sha256=U2jpYsNSNFA8bbqeQ8wZDvVWTwdgLPZfvtIzzcy23aA,26783
|
|
26
34
|
teareduce/cookbook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
|
-
teareduce/cookbook/get_cookbook_file.py,sha256=
|
|
35
|
+
teareduce/cookbook/get_cookbook_file.py,sha256=vde-iNii2lm1QII8GmLRsFsKNxkdsd7njCBE-8Z7io0,1088
|
|
28
36
|
teareduce/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
29
37
|
teareduce/tests/test_sliceregion.py,sha256=S7Zoh2eEBFIEbfsXgWBEMCf7pottjw2oLhqlZJQkAwg,3785
|
|
30
38
|
teareduce/tests/test_version.py,sha256=mKLnbXyvVNc1pATq5PxR8qeoFMPAFL_GilFV6IHLOi0,172
|
|
31
|
-
teareduce-0.
|
|
32
|
-
teareduce-0.
|
|
33
|
-
teareduce-0.
|
|
34
|
-
teareduce-0.
|
|
35
|
-
teareduce-0.
|
|
36
|
-
teareduce-0.
|
|
39
|
+
teareduce-0.5.0.dist-info/licenses/LICENSE.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
40
|
+
teareduce-0.5.0.dist-info/METADATA,sha256=bI2MQ4CMfRdMNscb6NjvIhl_4FTQnFCyX6n_1lymFn8,3066
|
|
41
|
+
teareduce-0.5.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
42
|
+
teareduce-0.5.0.dist-info/entry_points.txt,sha256=6yBvig5jTL2ugqz5SF767AiszzrHKGRASsX1II84kqA,66
|
|
43
|
+
teareduce-0.5.0.dist-info/top_level.txt,sha256=7OkwtX9zNRkGJ7ACgjk4ESgC74qUYcS5O2qcO0v-Si4,10
|
|
44
|
+
teareduce-0.5.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|