teareduce 0.6.6__tar.gz → 0.6.7__tar.gz
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-0.6.6/src/teareduce.egg-info → teareduce-0.6.7}/PKG-INFO +17 -10
- {teareduce-0.6.6 → teareduce-0.6.7}/README.md +16 -9
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cleanest/cosmicraycleanerapp.py +12 -12
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cleanest/definitions.py +3 -3
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cleanest/interpolationeditor.py +7 -7
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cleanest/reviewcosmicray.py +7 -7
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/version.py +1 -1
- {teareduce-0.6.6 → teareduce-0.6.7/src/teareduce.egg-info}/PKG-INFO +17 -10
- {teareduce-0.6.6 → teareduce-0.6.7}/LICENSE.txt +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/pyproject.toml +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/setup.cfg +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/__init__.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/avoid_astropy_warnings.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cleanest/__init__.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cleanest/__main__.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cleanest/askextension.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cleanest/centerchildparent.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cleanest/dilatemask.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cleanest/find_closest_true.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cleanest/gausskernel2d_elliptical.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cleanest/imagedisplay.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cleanest/interpolate.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cleanest/interpolation_a.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cleanest/interpolation_x.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cleanest/interpolation_y.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cleanest/lacosmicpad.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cleanest/mergemasks.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cleanest/modalprogressbar.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cleanest/parametereditor.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cleanest/trackedbutton.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cookbook/__init__.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cookbook/get_cookbook_file.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/correct_pincushion_distortion.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/cosmicrays.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/ctext.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/draw_rectangle.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/elapsed_time.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/histogram1d.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/imshow.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/numsplines.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/peaks_spectrum.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/polfit.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/robust_std.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/sdistortion.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/simulateccdexposure.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/sliceregion.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/statsummary.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/tests/__init__.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/tests/test_cleanest.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/tests/test_sliceregion.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/tests/test_version.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/wavecal.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/write_array_to_fits.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce/zscale.py +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce.egg-info/SOURCES.txt +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce.egg-info/dependency_links.txt +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce.egg-info/entry_points.txt +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce.egg-info/requires.txt +0 -0
- {teareduce-0.6.6 → teareduce-0.6.7}/src/teareduce.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: teareduce
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.7
|
|
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
|
|
@@ -39,7 +39,7 @@ Dynamic: license-file
|
|
|
39
39
|
|
|
40
40
|
# teareduce
|
|
41
41
|
|
|
42
|
-
[](https://badge.fury.io/py/teareduce)
|
|
42
|
+
[](https://badge.fury.io/py/teareduce)
|
|
43
43
|
|
|
44
44
|
Utilities for astronomical data reduction.
|
|
45
45
|
|
|
@@ -72,13 +72,6 @@ $ . venv_teareduce/bin/activate
|
|
|
72
72
|
(venv_teareduce) $
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
-
If you are planning to use **tea-cleanest**, you need to install this package
|
|
76
|
-
with extra dependencies. In this case employ:
|
|
77
|
-
|
|
78
|
-
```shell
|
|
79
|
-
(venv_teareduce) $ pip install 'teareduce[cleanest]'
|
|
80
|
-
```
|
|
81
|
-
|
|
82
75
|
### Installing the package
|
|
83
76
|
|
|
84
77
|
The latest stable version is available via de [PyPI repository](https://pypi.org/project/teareduce/):
|
|
@@ -96,6 +89,20 @@ The latest development version is available through [GitHub](https://github.com/
|
|
|
96
89
|
(venv_teareduce) $ pip install git+https://github.com/nicocardiel/teareduce.git@main#egg=teareduce
|
|
97
90
|
```
|
|
98
91
|
|
|
92
|
+
If you are planning to use **tea-cleanest**, you need to install this package
|
|
93
|
+
with extra dependencies. In this case employ:
|
|
94
|
+
|
|
95
|
+
```shell
|
|
96
|
+
(venv_teareduce) $ pip install 'teareduce[cleanest]'
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
In addition, in order to make use of the **PyCosmic** algorithm with
|
|
100
|
+
`tea-cleanest`, you need to install that package. This can be done using:
|
|
101
|
+
|
|
102
|
+
```shell
|
|
103
|
+
(venv_teareduce) $ pip install git+https://github.com/nicocardiel/PyCosmic.git@test
|
|
104
|
+
```
|
|
105
|
+
|
|
99
106
|
### Testing the installation
|
|
100
107
|
|
|
101
108
|
```shell
|
|
@@ -106,7 +113,7 @@ The latest development version is available through [GitHub](https://github.com/
|
|
|
106
113
|
(venv_teareduce) $ ipython
|
|
107
114
|
In [1]: import teareduce as tea
|
|
108
115
|
In [2]: print(tea.__version__)
|
|
109
|
-
0.
|
|
116
|
+
0.6.6
|
|
110
117
|
```
|
|
111
118
|
|
|
112
119
|
Note that in PyPI there is a package called **tea** that provides utilities
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# teareduce
|
|
2
2
|
|
|
3
|
-
[](https://badge.fury.io/py/teareduce)
|
|
3
|
+
[](https://badge.fury.io/py/teareduce)
|
|
4
4
|
|
|
5
5
|
Utilities for astronomical data reduction.
|
|
6
6
|
|
|
@@ -33,13 +33,6 @@ $ . venv_teareduce/bin/activate
|
|
|
33
33
|
(venv_teareduce) $
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
If you are planning to use **tea-cleanest**, you need to install this package
|
|
37
|
-
with extra dependencies. In this case employ:
|
|
38
|
-
|
|
39
|
-
```shell
|
|
40
|
-
(venv_teareduce) $ pip install 'teareduce[cleanest]'
|
|
41
|
-
```
|
|
42
|
-
|
|
43
36
|
### Installing the package
|
|
44
37
|
|
|
45
38
|
The latest stable version is available via de [PyPI repository](https://pypi.org/project/teareduce/):
|
|
@@ -57,6 +50,20 @@ The latest development version is available through [GitHub](https://github.com/
|
|
|
57
50
|
(venv_teareduce) $ pip install git+https://github.com/nicocardiel/teareduce.git@main#egg=teareduce
|
|
58
51
|
```
|
|
59
52
|
|
|
53
|
+
If you are planning to use **tea-cleanest**, you need to install this package
|
|
54
|
+
with extra dependencies. In this case employ:
|
|
55
|
+
|
|
56
|
+
```shell
|
|
57
|
+
(venv_teareduce) $ pip install 'teareduce[cleanest]'
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
In addition, in order to make use of the **PyCosmic** algorithm with
|
|
61
|
+
`tea-cleanest`, you need to install that package. This can be done using:
|
|
62
|
+
|
|
63
|
+
```shell
|
|
64
|
+
(venv_teareduce) $ pip install git+https://github.com/nicocardiel/PyCosmic.git@test
|
|
65
|
+
```
|
|
66
|
+
|
|
60
67
|
### Testing the installation
|
|
61
68
|
|
|
62
69
|
```shell
|
|
@@ -67,7 +74,7 @@ The latest development version is available through [GitHub](https://github.com/
|
|
|
67
74
|
(venv_teareduce) $ ipython
|
|
68
75
|
In [1]: import teareduce as tea
|
|
69
76
|
In [2]: print(tea.__version__)
|
|
70
|
-
0.
|
|
77
|
+
0.6.6
|
|
71
78
|
```
|
|
72
79
|
|
|
73
80
|
Note that in PyPI there is a package called **tea** that provides utilities
|
|
@@ -372,9 +372,9 @@ class CosmicRayCleanerApp(ImageDisplay):
|
|
|
372
372
|
# --- DeepCR button
|
|
373
373
|
self.run_deepcr_button = tkbutton.new(
|
|
374
374
|
self.button_frame1,
|
|
375
|
-
text="Run
|
|
375
|
+
text="Run deepCR",
|
|
376
376
|
command=self.run_deepcr,
|
|
377
|
-
help_text="Run the
|
|
377
|
+
help_text="Run the deepCR algorithm to detect cosmic rays in the image.",
|
|
378
378
|
)
|
|
379
379
|
self.run_deepcr_button.pack(side=tk.LEFT, padx=5)
|
|
380
380
|
# --- Cosmic-CoNN button
|
|
@@ -677,7 +677,7 @@ class CosmicRayCleanerApp(ImageDisplay):
|
|
|
677
677
|
"Dilation", "Enter Dilation (min=0):", initialvalue=0, minvalue=0
|
|
678
678
|
)
|
|
679
679
|
self.process_detected_cr(dilation=dilation)
|
|
680
|
-
self.cleandata_deepcr = None # Invalidate previous
|
|
680
|
+
self.cleandata_deepcr = None # Invalidate previous deepCR cleaned data
|
|
681
681
|
self.cleandata_lacosmic = None # Invalidate previous L.A.Cosmic cleaned data
|
|
682
682
|
self.cleandata_pycosmic = None # Invalidate previous PyCosmic cleaned data
|
|
683
683
|
except Exception as e:
|
|
@@ -1189,7 +1189,7 @@ class CosmicRayCleanerApp(ImageDisplay):
|
|
|
1189
1189
|
self.save_crmask_button.config(state=tk.NORMAL)
|
|
1190
1190
|
|
|
1191
1191
|
def run_deepcr(self):
|
|
1192
|
-
"""Run
|
|
1192
|
+
"""Run deepCR to detect cosmic rays."""
|
|
1193
1193
|
if np.any(self.mask_crfound):
|
|
1194
1194
|
overwrite = messagebox.askyesno(
|
|
1195
1195
|
"Overwrite Cosmic Ray Mask",
|
|
@@ -1198,23 +1198,23 @@ class CosmicRayCleanerApp(ImageDisplay):
|
|
|
1198
1198
|
if not overwrite:
|
|
1199
1199
|
return
|
|
1200
1200
|
self.run_deepcr_button.config(state=tk.DISABLED)
|
|
1201
|
-
print("[bold green]Executing
|
|
1202
|
-
# Initialize the
|
|
1201
|
+
print("[bold green]Executing deepCR...[/bold green]")
|
|
1202
|
+
# Initialize the deepCR model
|
|
1203
1203
|
mdl = deepCR.deepCR(mask=self.deepcr_params["mask"]["value"])
|
|
1204
1204
|
# Ask for threshold value and update parameter
|
|
1205
1205
|
threshold = simpledialog.askfloat(
|
|
1206
1206
|
"Threshold",
|
|
1207
|
-
"Enter
|
|
1207
|
+
"Enter deepCR probability threshold (0.0 - 1.0):",
|
|
1208
1208
|
initialvalue=self.deepcr_params["threshold"]["value"],
|
|
1209
1209
|
minvalue=0.0,
|
|
1210
1210
|
maxvalue=1.0,
|
|
1211
1211
|
)
|
|
1212
1212
|
if threshold is None:
|
|
1213
|
-
print("Threshold input cancelled.
|
|
1213
|
+
print("Threshold input cancelled. deepCR detection skipped!")
|
|
1214
1214
|
self.run_deepcr_button.config(state=tk.NORMAL)
|
|
1215
1215
|
return
|
|
1216
1216
|
self.deepcr_params["threshold"]["value"] = threshold
|
|
1217
|
-
print(f"Running
|
|
1217
|
+
print(f"Running deepCR version: {deepCR.__version__} (please wait...)", end="")
|
|
1218
1218
|
self.mask_crfound, self.cleandata_deepcr = mdl.clean(
|
|
1219
1219
|
self.data,
|
|
1220
1220
|
threshold=self.deepcr_params["threshold"]["value"],
|
|
@@ -1224,16 +1224,16 @@ class CosmicRayCleanerApp(ImageDisplay):
|
|
|
1224
1224
|
# Process the mask: dilation and labeling
|
|
1225
1225
|
dilation = simpledialog.askinteger(
|
|
1226
1226
|
"Dilation",
|
|
1227
|
-
"Note: Applying dilation will prevent the use of the
|
|
1227
|
+
"Note: Applying dilation will prevent the use of the deepCR cleaned data.\n\n" "Enter Dilation (min=0):",
|
|
1228
1228
|
initialvalue=self.deepcr_params["dilation"]["value"],
|
|
1229
1229
|
minvalue=0,
|
|
1230
1230
|
)
|
|
1231
1231
|
if dilation is None:
|
|
1232
|
-
print("Dilation input cancelled.
|
|
1232
|
+
print("Dilation input cancelled. deepCR detection skipped!")
|
|
1233
1233
|
self.run_deepcr_button.config(state=tk.NORMAL)
|
|
1234
1234
|
return
|
|
1235
1235
|
if dilation > 0:
|
|
1236
|
-
self.cleandata_deepcr = None # Invalidate
|
|
1236
|
+
self.cleandata_deepcr = None # Invalidate deepCR cleaned data if dilation applied
|
|
1237
1237
|
self.deepcr_params["dilation"]["value"] = dilation
|
|
1238
1238
|
self.process_detected_cr(dilation=self.deepcr_params["dilation"]["value"])
|
|
1239
1239
|
# Invalidate previous cleaned data from other methods
|
|
@@ -135,9 +135,9 @@ VALID_CLEANING_METHODS = {
|
|
|
135
135
|
"surface interp.": "a-plane",
|
|
136
136
|
"median": "a-median",
|
|
137
137
|
"mean": "a-mean",
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
138
|
+
"L.A.Cosmic": "lacosmic",
|
|
139
|
+
"PyCosmic": "pycosmic",
|
|
140
|
+
"deepCR": "deepcr",
|
|
141
141
|
"maskfill": "maskfill",
|
|
142
142
|
"auxdata": "auxdata",
|
|
143
143
|
}
|
|
@@ -70,7 +70,7 @@ class InterpolationEditor:
|
|
|
70
70
|
cleandata_pycosmic : array-like or None
|
|
71
71
|
Cleaned data from PyCosmic, if available.
|
|
72
72
|
cleandata_deepcr : array-like or None
|
|
73
|
-
Cleaned data from
|
|
73
|
+
Cleaned data from deepCR, if available.
|
|
74
74
|
xmin : float
|
|
75
75
|
Minimum x value of the data. From 1 to NAXIS1.
|
|
76
76
|
xmax : float
|
|
@@ -106,7 +106,7 @@ class InterpolationEditor:
|
|
|
106
106
|
cleandata_pycosmic : array-like or None
|
|
107
107
|
Cleaned data from PyCosmic, if available.
|
|
108
108
|
cleandata_deepcr : array-like or None
|
|
109
|
-
Cleaned data from
|
|
109
|
+
Cleaned data from deepCR, if available.
|
|
110
110
|
dict_interp_methods : dict
|
|
111
111
|
Mapping of interpolation method names to their codes.
|
|
112
112
|
cleaning_method : str or None
|
|
@@ -182,17 +182,17 @@ class InterpolationEditor:
|
|
|
182
182
|
state = "normal"
|
|
183
183
|
# Skip replace by L.A.Cosmic values if last dilation is not zero
|
|
184
184
|
# or cleandata_lacosmic is not available
|
|
185
|
-
if interp_method == "
|
|
185
|
+
if interp_method == "L.A.Cosmic":
|
|
186
186
|
if self.last_dilation != 0:
|
|
187
187
|
state = "disabled"
|
|
188
188
|
if self.cleandata_lacosmic is None:
|
|
189
189
|
state = "disabled"
|
|
190
190
|
# Skip replace by PyCosmic values if cleandata_pycosmic is not available
|
|
191
|
-
elif interp_method == "
|
|
191
|
+
elif interp_method == "PyCosmic":
|
|
192
192
|
if self.cleandata_pycosmic is None:
|
|
193
193
|
state = "disabled"
|
|
194
|
-
# Skip replace by
|
|
195
|
-
elif interp_method == "
|
|
194
|
+
# Skip replace by deepCR values if cleandata_deepcr is not available
|
|
195
|
+
elif interp_method == "deepCR":
|
|
196
196
|
if self.cleandata_deepcr is None:
|
|
197
197
|
state = "disabled"
|
|
198
198
|
# Skip auxdata method if auxdata is not available
|
|
@@ -475,7 +475,7 @@ class InterpolationEditor:
|
|
|
475
475
|
self.entry_maskfill_operator.config(state="disabled")
|
|
476
476
|
self.entry_maskfill_smooth.config(state="disabled")
|
|
477
477
|
self.entry_maskfill_verbose.config(state="disabled")
|
|
478
|
-
elif selected_method in ["
|
|
478
|
+
elif selected_method in ["L.A.Cosmic", "PyCosmic", "deepCR", "auxdata"]:
|
|
479
479
|
self.entry_npoints.config(state="disabled")
|
|
480
480
|
self.entry_degree.config(state="disabled")
|
|
481
481
|
self.entry_maskfill_size.config(state="disabled")
|
|
@@ -91,7 +91,7 @@ class ReviewCosmicRay(ImageDisplay):
|
|
|
91
91
|
cleandata_pycosmic: 2D numpy array or None
|
|
92
92
|
The cleaned image data from PyCosmic.
|
|
93
93
|
cleandata_deepcr: 2D numpy array or None
|
|
94
|
-
The cleaned image data from
|
|
94
|
+
The cleaned image data from deepCR.
|
|
95
95
|
cr_labels : 2D numpy array
|
|
96
96
|
Labels of connected cosmic ray pixel groups.
|
|
97
97
|
num_features : int
|
|
@@ -167,7 +167,7 @@ class ReviewCosmicRay(ImageDisplay):
|
|
|
167
167
|
cleandata_pycosmic: 2D numpy array or None
|
|
168
168
|
The cleaned image data from PyCosmic.
|
|
169
169
|
cleandata_deepcr: 2D numpy array or None
|
|
170
|
-
The cleaned image data from
|
|
170
|
+
The cleaned image data from deepCR.
|
|
171
171
|
cr_labels : 2D numpy array
|
|
172
172
|
Labels of connected cosmic ray pixel groups.
|
|
173
173
|
num_features : int
|
|
@@ -360,7 +360,7 @@ class ReviewCosmicRay(ImageDisplay):
|
|
|
360
360
|
# --- Interpolation using L.A.Cosmic button
|
|
361
361
|
self.interp_l_button = tkbutton.new(
|
|
362
362
|
self.button_frame3,
|
|
363
|
-
text="[
|
|
363
|
+
text="[L].A.Cosmic",
|
|
364
364
|
command=self.use_lacosmic,
|
|
365
365
|
help_text="Use L.A.Cosmic interpolation for the current cosmic ray.",
|
|
366
366
|
)
|
|
@@ -384,7 +384,7 @@ class ReviewCosmicRay(ImageDisplay):
|
|
|
384
384
|
self.button_frame3,
|
|
385
385
|
text="deepCR",
|
|
386
386
|
command=self.use_deepcr,
|
|
387
|
-
help_text="Use
|
|
387
|
+
help_text="Use deepCR interpolation for the current cosmic ray.",
|
|
388
388
|
)
|
|
389
389
|
self.interp_deepcr_button.pack(side=tk.LEFT, padx=5)
|
|
390
390
|
if self.cleandata_deepcr is None:
|
|
@@ -745,11 +745,11 @@ class ReviewCosmicRay(ImageDisplay):
|
|
|
745
745
|
self.update_display(cleaned=True)
|
|
746
746
|
|
|
747
747
|
def use_deepcr(self):
|
|
748
|
-
"""Use
|
|
748
|
+
"""Use deepCR cleaned data to clean a cosmic ray."""
|
|
749
749
|
if self.cleandata_deepcr is None:
|
|
750
|
-
print("
|
|
750
|
+
print("deepCR cleaned data not available.")
|
|
751
751
|
return
|
|
752
|
-
print(f"
|
|
752
|
+
print(f"deepCR interpolation of cosmic ray {self.cr_index}")
|
|
753
753
|
ycr_list, xcr_list = np.where(self.cr_labels == self.cr_index)
|
|
754
754
|
for iy, ix in zip(ycr_list, xcr_list):
|
|
755
755
|
self.data[iy, ix] = self.cleandata_deepcr[iy, ix]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: teareduce
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.7
|
|
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
|
|
@@ -39,7 +39,7 @@ Dynamic: license-file
|
|
|
39
39
|
|
|
40
40
|
# teareduce
|
|
41
41
|
|
|
42
|
-
[](https://badge.fury.io/py/teareduce)
|
|
42
|
+
[](https://badge.fury.io/py/teareduce)
|
|
43
43
|
|
|
44
44
|
Utilities for astronomical data reduction.
|
|
45
45
|
|
|
@@ -72,13 +72,6 @@ $ . venv_teareduce/bin/activate
|
|
|
72
72
|
(venv_teareduce) $
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
-
If you are planning to use **tea-cleanest**, you need to install this package
|
|
76
|
-
with extra dependencies. In this case employ:
|
|
77
|
-
|
|
78
|
-
```shell
|
|
79
|
-
(venv_teareduce) $ pip install 'teareduce[cleanest]'
|
|
80
|
-
```
|
|
81
|
-
|
|
82
75
|
### Installing the package
|
|
83
76
|
|
|
84
77
|
The latest stable version is available via de [PyPI repository](https://pypi.org/project/teareduce/):
|
|
@@ -96,6 +89,20 @@ The latest development version is available through [GitHub](https://github.com/
|
|
|
96
89
|
(venv_teareduce) $ pip install git+https://github.com/nicocardiel/teareduce.git@main#egg=teareduce
|
|
97
90
|
```
|
|
98
91
|
|
|
92
|
+
If you are planning to use **tea-cleanest**, you need to install this package
|
|
93
|
+
with extra dependencies. In this case employ:
|
|
94
|
+
|
|
95
|
+
```shell
|
|
96
|
+
(venv_teareduce) $ pip install 'teareduce[cleanest]'
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
In addition, in order to make use of the **PyCosmic** algorithm with
|
|
100
|
+
`tea-cleanest`, you need to install that package. This can be done using:
|
|
101
|
+
|
|
102
|
+
```shell
|
|
103
|
+
(venv_teareduce) $ pip install git+https://github.com/nicocardiel/PyCosmic.git@test
|
|
104
|
+
```
|
|
105
|
+
|
|
99
106
|
### Testing the installation
|
|
100
107
|
|
|
101
108
|
```shell
|
|
@@ -106,7 +113,7 @@ The latest development version is available through [GitHub](https://github.com/
|
|
|
106
113
|
(venv_teareduce) $ ipython
|
|
107
114
|
In [1]: import teareduce as tea
|
|
108
115
|
In [2]: print(tea.__version__)
|
|
109
|
-
0.
|
|
116
|
+
0.6.6
|
|
110
117
|
```
|
|
111
118
|
|
|
112
119
|
Note that in PyPI there is a package called **tea** that provides utilities
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|