lightstack 0.2.0__tar.gz → 0.2.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lightstack
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Tools for building and processing multi-filter astrophysical datacubes
5
5
  Author: Andressa Wille, Thallis Pessi
6
6
  License: MIT License
@@ -35,7 +35,7 @@ Requires-Dist: regions
35
35
  Requires-Dist: scipy
36
36
  Requires-Dist: photutils
37
37
 
38
- [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.19393439.svg)](https://doi.org/10.5281/zenodo.19393439)
38
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.19393438.svg)](https://doi.org/10.5281/zenodo.19393438)
39
39
 
40
40
  <img src="https://raw.githubusercontent.com/AndressaWille/lightstack/master/images/logo.png" width="120">
41
41
 
@@ -1,4 +1,4 @@
1
- [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.19393439.svg)](https://doi.org/10.5281/zenodo.19393439)
1
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.19393438.svg)](https://doi.org/10.5281/zenodo.19393438)
2
2
 
3
3
  <img src="https://raw.githubusercontent.com/AndressaWille/lightstack/master/images/logo.png" width="120">
4
4
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "lightstack"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  description = "Tools for building and processing multi-filter astrophysical datacubes"
5
5
  readme = "README.md"
6
6
  authors = [{name = "Andressa Wille"}, {name="Thallis Pessi"}]
@@ -25,6 +25,7 @@ from .crop import (
25
25
  # Datacube / alignment
26
26
  # =========================
27
27
  from .datacube import (
28
+ load_image_fits,
28
29
  align_reproject_fits,
29
30
  build_datacube,
30
31
  cut_region_datacube,
@@ -37,6 +38,9 @@ from .datacube import (
37
38
  # PSF matching
38
39
  # =========================
39
40
  from .psf import (
41
+ centroid_weighted,
42
+ make_odd,
43
+ resample_psf,
40
44
  build_kernel,
41
45
  save_kernel,
42
46
  apply_kernel,
@@ -56,8 +60,19 @@ from .plot import (
56
60
  # Utils
57
61
  # =========================
58
62
  from .utils import (
63
+ get_filter,
64
+ get_filter_info,
65
+ pick_output_group,
66
+ pick_group,
67
+ pick_instrument,
68
+ sort_filters,
69
+ add_custom_dataset,
59
70
  find_ext,
60
- infer_filter,
71
+ save_fits,
72
+ MJy_sr_to_jy,
73
+ get_pixel_scale,
74
+ get_pixel_scale_from_wcs
75
+
61
76
  )
62
77
 
63
78
  # =========================
@@ -72,6 +87,7 @@ __all__ = [
72
87
  "cut_region_2d",
73
88
 
74
89
  # datacube
90
+ "load_image_fits",
75
91
  "align_reproject_fits",
76
92
  "build_datacube",
77
93
  "cut_region_datacube",
@@ -80,6 +96,9 @@ __all__ = [
80
96
  "update_cube_header",
81
97
 
82
98
  # psf
99
+ "centroid_weighted",
100
+ "make_odd",
101
+ "resample_psf",
83
102
  "build_kernel",
84
103
  "save_kernel",
85
104
  "apply_kernel",
@@ -92,13 +111,16 @@ __all__ = [
92
111
 
93
112
  # utils
94
113
  "find_ext",
95
- "infer_filter",
96
- "pick_folder",
97
114
  "get_filter",
98
- "filter_id",
115
+ "get_filter_info",
116
+ "pick_output_group",
117
+ "pick_group",
118
+ "pick_instrument",
119
+ "sort_filters",
120
+ "add_custom_dataset",
99
121
  "save_fits",
100
- "sort_fits",
101
122
  "MJy_sr_to_jy",
102
123
  "get_pixel_scale",
124
+ "get_pixel_scale_from_wcs",
103
125
 
104
126
  ]
@@ -276,7 +276,7 @@ def cut_region_2d(fits_file, x_start, x_end, y_start, y_end, output_path):
276
276
  with fits.open(fits_file) as hdul:
277
277
  ext = find_ext(hdul)
278
278
  if ext is None:
279
- raise ValueError(f"No image data found in {fits_path}")
279
+ raise ValueError(f"No image data found in {fits_file}")
280
280
 
281
281
  data = hdul[ext].data
282
282
  header = hdul[ext].header
@@ -237,7 +237,7 @@ def add_custom_dataset(
237
237
 
238
238
  {
239
239
  "FILTER1": {
240
- "lambda": 5500.0, # Angstrom!!!
240
+ "lambda": 5500.0 (in angstroms),
241
241
  "instrument": "TelescopeCam",
242
242
  "group": "broad",
243
243
  "output_group": "Telescope"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lightstack
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Tools for building and processing multi-filter astrophysical datacubes
5
5
  Author: Andressa Wille, Thallis Pessi
6
6
  License: MIT License
@@ -35,7 +35,7 @@ Requires-Dist: regions
35
35
  Requires-Dist: scipy
36
36
  Requires-Dist: photutils
37
37
 
38
- [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.19393439.svg)](https://doi.org/10.5281/zenodo.19393439)
38
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.19393438.svg)](https://doi.org/10.5281/zenodo.19393438)
39
39
 
40
40
  <img src="https://raw.githubusercontent.com/AndressaWille/lightstack/master/images/logo.png" width="120">
41
41
 
File without changes
File without changes