fitscube 2.7.0__tar.gz → 2.9.0__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.
- {fitscube-2.7.0 → fitscube-2.9.0}/PKG-INFO +4 -4
- {fitscube-2.7.0 → fitscube-2.9.0}/README.md +2 -2
- {fitscube-2.7.0 → fitscube-2.9.0}/fitscube/_version.py +2 -2
- {fitscube-2.7.0 → fitscube-2.9.0}/fitscube/bounding_box.py +2 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/fitscube/combine_fits.py +345 -79
- {fitscube-2.7.0 → fitscube-2.9.0}/fitscube/exceptions.py +8 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/fitscube/extract.py +95 -25
- {fitscube-2.7.0 → fitscube-2.9.0}/pyproject.toml +1 -1
- {fitscube-2.7.0 → fitscube-2.9.0}/tests/test_combine.py +37 -12
- {fitscube-2.7.0 → fitscube-2.9.0}/tests/test_combine_guards.py +201 -1
- fitscube-2.9.0/tests/test_combine_layouts.py +328 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/tests/test_extract.py +164 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/tests/test_frequencies.py +27 -2
- {fitscube-2.7.0 → fitscube-2.9.0}/tests/test_times.py +42 -2
- {fitscube-2.7.0 → fitscube-2.9.0}/uv.lock +1 -1
- {fitscube-2.7.0 → fitscube-2.9.0}/.github/CONTRIBUTING.md +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/.github/dependabot.yml +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/.github/release.yml +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/.github/workflows/cd.yml +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/.github/workflows/ci.yml +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/.gitignore +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/.pre-commit-config.yaml +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/CHANGELOG.md +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/LICENSE +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/fitscube/__init__.py +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/fitscube/asyncio.py +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/fitscube/cli.py +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/fitscube/logging.py +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/fitscube/version.pyi +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/noxfile.py +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/tests/__init__.py +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/tests/conftest.py +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/tests/data/cube.zip +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/tests/data/images.zip +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/tests/data/time_images.zip +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/tests/data/timecube.zip +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/tests/test_bb.py +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/tests/test_compress.py +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/tests/test_package.py +0 -0
- {fitscube-2.7.0 → fitscube-2.9.0}/tests/test_zero_beams.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: fitscube
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.9.0
|
|
4
4
|
Summary: A package to produce produce FITS cubes.
|
|
5
5
|
Project-URL: Homepage, https://github.com/AlecThomson/fitscube
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/AlecThomson/fitscube/issues
|
|
@@ -45,7 +45,7 @@ Classifier: Programming Language :: Python :: 3.14
|
|
|
45
45
|
Classifier: Topic :: Scientific/Engineering
|
|
46
46
|
Classifier: Typing :: Typed
|
|
47
47
|
Requires-Python: >=3.10
|
|
48
|
-
Requires-Dist: astropy
|
|
48
|
+
Requires-Dist: astropy>=6.0
|
|
49
49
|
Requires-Dist: numpy>=2
|
|
50
50
|
Requires-Dist: radio-beam
|
|
51
51
|
Requires-Dist: tqdm
|
|
@@ -169,7 +169,7 @@ options:
|
|
|
169
169
|
usage: fitscube combine [-h] [-o] [--create-blanks] [--time-domain]
|
|
170
170
|
[--spec-file SPEC_FILE | --specs SPECS [SPECS ...] | --ignore-spec] [-v]
|
|
171
171
|
[--max-workers MAX_WORKERS] [--bounding-box] [--invalidate-zeros]
|
|
172
|
-
[--no-blank-zero-beams] [--floating {
|
|
172
|
+
[--no-blank-zero-beams] [--floating {32,64}] [--compress]
|
|
173
173
|
[--compress-method {gzip,pgzip}]
|
|
174
174
|
file_list [file_list ...] out_cube
|
|
175
175
|
|
|
@@ -199,7 +199,7 @@ options:
|
|
|
199
199
|
Keep images whose restoring beam is exactly zero. By default such images
|
|
200
200
|
are blanked with NaNs, as a zero beam means no PSF was fitted for that
|
|
201
201
|
plane (e.g. a wsclean model image planted by -fit-spectral-pol)
|
|
202
|
-
--floating {
|
|
202
|
+
--floating {32,64}
|
|
203
203
|
The number of floating point bits to use in the out cube. If None the
|
|
204
204
|
input data precision is used.
|
|
205
205
|
--compress Gzip-compress the output cube
|
|
@@ -96,7 +96,7 @@ options:
|
|
|
96
96
|
usage: fitscube combine [-h] [-o] [--create-blanks] [--time-domain]
|
|
97
97
|
[--spec-file SPEC_FILE | --specs SPECS [SPECS ...] | --ignore-spec] [-v]
|
|
98
98
|
[--max-workers MAX_WORKERS] [--bounding-box] [--invalidate-zeros]
|
|
99
|
-
[--no-blank-zero-beams] [--floating {
|
|
99
|
+
[--no-blank-zero-beams] [--floating {32,64}] [--compress]
|
|
100
100
|
[--compress-method {gzip,pgzip}]
|
|
101
101
|
file_list [file_list ...] out_cube
|
|
102
102
|
|
|
@@ -126,7 +126,7 @@ options:
|
|
|
126
126
|
Keep images whose restoring beam is exactly zero. By default such images
|
|
127
127
|
are blanked with NaNs, as a zero beam means no PSF was fitted for that
|
|
128
128
|
plane (e.g. a wsclean model image planted by -fit-spectral-pol)
|
|
129
|
-
--floating {
|
|
129
|
+
--floating {32,64}
|
|
130
130
|
The number of floating point bits to use in the out cube. If None the
|
|
131
131
|
input data precision is used.
|
|
132
132
|
--compress Gzip-compress the output cube
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '2.
|
|
22
|
-
__version_tuple__ = version_tuple = (2,
|
|
21
|
+
__version__ = version = '2.9.0'
|
|
22
|
+
__version_tuple__ = version_tuple = (2, 9, 0)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -163,6 +163,8 @@ async def get_bounding_box_for_fits_coro(
|
|
|
163
163
|
data = np.squeeze(data)
|
|
164
164
|
|
|
165
165
|
if invalidate_zeros:
|
|
166
|
+
# Integer data cannot hold NaN
|
|
167
|
+
data = data.astype(np.result_type(data.dtype, np.float32))
|
|
166
168
|
data[data == 0.0] = np.nan
|
|
167
169
|
|
|
168
170
|
return await asyncio.to_thread(create_bound_box_plane, image_data=data)
|