teareduce 0.6.5__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.5/src/teareduce.egg-info → teareduce-0.6.7}/PKG-INFO +20 -9
- {teareduce-0.6.5 → teareduce-0.6.7}/README.md +17 -8
- {teareduce-0.6.5 → teareduce-0.6.7}/pyproject.toml +2 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cleanest/__main__.py +4 -10
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cleanest/cosmicraycleanerapp.py +642 -233
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cleanest/definitions.py +64 -6
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cleanest/interpolate.py +1 -1
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cleanest/interpolationeditor.py +24 -10
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cleanest/lacosmicpad.py +23 -4
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cleanest/parametereditor.py +386 -5
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cleanest/reviewcosmicray.py +110 -19
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/sdistortion.py +1 -1
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/statsummary.py +1 -1
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/version.py +1 -1
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/wavecal.py +1 -1
- {teareduce-0.6.5 → teareduce-0.6.7/src/teareduce.egg-info}/PKG-INFO +20 -9
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce.egg-info/requires.txt +2 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/LICENSE.txt +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/setup.cfg +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/__init__.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/avoid_astropy_warnings.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cleanest/__init__.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cleanest/askextension.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cleanest/centerchildparent.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cleanest/dilatemask.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cleanest/find_closest_true.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cleanest/gausskernel2d_elliptical.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cleanest/imagedisplay.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cleanest/interpolation_a.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cleanest/interpolation_x.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cleanest/interpolation_y.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cleanest/mergemasks.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cleanest/modalprogressbar.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cleanest/trackedbutton.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cookbook/__init__.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cookbook/get_cookbook_file.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/correct_pincushion_distortion.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/cosmicrays.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/ctext.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/draw_rectangle.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/elapsed_time.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/histogram1d.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/imshow.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/numsplines.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/peaks_spectrum.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/polfit.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/robust_std.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/simulateccdexposure.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/sliceregion.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/tests/__init__.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/tests/test_cleanest.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/tests/test_sliceregion.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/tests/test_version.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/write_array_to_fits.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce/zscale.py +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce.egg-info/SOURCES.txt +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce.egg-info/dependency_links.txt +0 -0
- {teareduce-0.6.5 → teareduce-0.6.7}/src/teareduce.egg-info/entry_points.txt +0 -0
- {teareduce-0.6.5 → 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
|
|
@@ -30,6 +30,8 @@ Requires-Dist: scipy
|
|
|
30
30
|
Requires-Dist: tqdm
|
|
31
31
|
Provides-Extra: cleanest
|
|
32
32
|
Requires-Dist: ccdproc; extra == "cleanest"
|
|
33
|
+
Requires-Dist: cosmic-conn; extra == "cleanest"
|
|
34
|
+
Requires-Dist: deepCR; extra == "cleanest"
|
|
33
35
|
Requires-Dist: maskfill; extra == "cleanest"
|
|
34
36
|
Provides-Extra: test
|
|
35
37
|
Requires-Dist: pytest; extra == "test"
|
|
@@ -37,6 +39,8 @@ Dynamic: license-file
|
|
|
37
39
|
|
|
38
40
|
# teareduce
|
|
39
41
|
|
|
42
|
+
[](https://badge.fury.io/py/teareduce)
|
|
43
|
+
|
|
40
44
|
Utilities for astronomical data reduction.
|
|
41
45
|
|
|
42
46
|
This package is not intended to be a general-purpose image reduction code. It
|
|
@@ -68,13 +72,6 @@ $ . venv_teareduce/bin/activate
|
|
|
68
72
|
(venv_teareduce) $
|
|
69
73
|
```
|
|
70
74
|
|
|
71
|
-
If you are planning to use **tea-cleanest**, you need to install this package
|
|
72
|
-
with extra dependencies. In this case employ:
|
|
73
|
-
|
|
74
|
-
```shell
|
|
75
|
-
(venv_teareduce) $ pip install 'teareduce[cleanest]'
|
|
76
|
-
```
|
|
77
|
-
|
|
78
75
|
### Installing the package
|
|
79
76
|
|
|
80
77
|
The latest stable version is available via de [PyPI repository](https://pypi.org/project/teareduce/):
|
|
@@ -92,6 +89,20 @@ The latest development version is available through [GitHub](https://github.com/
|
|
|
92
89
|
(venv_teareduce) $ pip install git+https://github.com/nicocardiel/teareduce.git@main#egg=teareduce
|
|
93
90
|
```
|
|
94
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
|
+
|
|
95
106
|
### Testing the installation
|
|
96
107
|
|
|
97
108
|
```shell
|
|
@@ -102,7 +113,7 @@ The latest development version is available through [GitHub](https://github.com/
|
|
|
102
113
|
(venv_teareduce) $ ipython
|
|
103
114
|
In [1]: import teareduce as tea
|
|
104
115
|
In [2]: print(tea.__version__)
|
|
105
|
-
0.
|
|
116
|
+
0.6.6
|
|
106
117
|
```
|
|
107
118
|
|
|
108
119
|
Note that in PyPI there is a package called **tea** that provides utilities
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# teareduce
|
|
2
2
|
|
|
3
|
+
[](https://badge.fury.io/py/teareduce)
|
|
4
|
+
|
|
3
5
|
Utilities for astronomical data reduction.
|
|
4
6
|
|
|
5
7
|
This package is not intended to be a general-purpose image reduction code. It
|
|
@@ -31,13 +33,6 @@ $ . venv_teareduce/bin/activate
|
|
|
31
33
|
(venv_teareduce) $
|
|
32
34
|
```
|
|
33
35
|
|
|
34
|
-
If you are planning to use **tea-cleanest**, you need to install this package
|
|
35
|
-
with extra dependencies. In this case employ:
|
|
36
|
-
|
|
37
|
-
```shell
|
|
38
|
-
(venv_teareduce) $ pip install 'teareduce[cleanest]'
|
|
39
|
-
```
|
|
40
|
-
|
|
41
36
|
### Installing the package
|
|
42
37
|
|
|
43
38
|
The latest stable version is available via de [PyPI repository](https://pypi.org/project/teareduce/):
|
|
@@ -55,6 +50,20 @@ The latest development version is available through [GitHub](https://github.com/
|
|
|
55
50
|
(venv_teareduce) $ pip install git+https://github.com/nicocardiel/teareduce.git@main#egg=teareduce
|
|
56
51
|
```
|
|
57
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
|
+
|
|
58
67
|
### Testing the installation
|
|
59
68
|
|
|
60
69
|
```shell
|
|
@@ -65,7 +74,7 @@ The latest development version is available through [GitHub](https://github.com/
|
|
|
65
74
|
(venv_teareduce) $ ipython
|
|
66
75
|
In [1]: import teareduce as tea
|
|
67
76
|
In [2]: print(tea.__version__)
|
|
68
|
-
0.
|
|
77
|
+
0.6.6
|
|
69
78
|
```
|
|
70
79
|
|
|
71
80
|
Note that in PyPI there is a package called **tea** that provides utilities
|
|
@@ -19,6 +19,7 @@ import platform
|
|
|
19
19
|
from rich import print
|
|
20
20
|
from rich_argparse import RichHelpFormatter
|
|
21
21
|
|
|
22
|
+
from .askextension import ask_extension_input_image
|
|
22
23
|
from .definitions import DEFAULT_FONT_FAMILY
|
|
23
24
|
from .definitions import DEFAULT_FONT_SIZE
|
|
24
25
|
from .definitions import DEFAULT_TK_WINDOW_SIZE_X
|
|
@@ -85,17 +86,14 @@ def main():
|
|
|
85
86
|
root.withdraw() # Hide the root window
|
|
86
87
|
args.input_fits = filedialog.askopenfilename(
|
|
87
88
|
title="Select FITS file to be cleaned",
|
|
89
|
+
initialdir=os.getcwd(),
|
|
88
90
|
filetypes=[("FITS files", "*.fits *.fit *.fts"), ("All files", "*.*")],
|
|
89
91
|
)
|
|
90
92
|
if not args.input_fits:
|
|
91
93
|
print("No input FITS file selected. Exiting.")
|
|
92
94
|
exit(1)
|
|
93
95
|
print(f"Selected input FITS file: {args.input_fits}")
|
|
94
|
-
args.extension =
|
|
95
|
-
"Select Extension",
|
|
96
|
-
f"\nEnter extension number or name for file:\n{Path(args.input_fits).name}",
|
|
97
|
-
initialvalue=args.extension,
|
|
98
|
-
)
|
|
96
|
+
args.extension = ask_extension_input_image(args.input_fits, imgshape=None)
|
|
99
97
|
# Ask for auxiliary file if not provided
|
|
100
98
|
if args.auxfile is None:
|
|
101
99
|
use_auxfile = tk.messagebox.askyesno(
|
|
@@ -116,11 +114,7 @@ def main():
|
|
|
116
114
|
use_auxfile = True
|
|
117
115
|
if use_auxfile:
|
|
118
116
|
print(f"Selected auxiliary FITS file: {args.auxfile}")
|
|
119
|
-
args.extension_auxfile =
|
|
120
|
-
"Select Extension for Auxiliary File",
|
|
121
|
-
f"\nEnter extension number or name for auxiliary file:\n{Path(args.auxfile).name}",
|
|
122
|
-
initialvalue=args.extension_auxfile,
|
|
123
|
-
)
|
|
117
|
+
args.extension_auxfile = ask_extension_input_image(args.auxfile, imgshape=None)
|
|
124
118
|
root.destroy()
|
|
125
119
|
|
|
126
120
|
# Check that input files, and the corresponding extensions, exist
|