pz-rail-astro-tools 1.1.2__tar.gz → 1.1.3__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.
Potentially problematic release.
This version of pz-rail-astro-tools might be problematic. Click here for more details.
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/PKG-INFO +2 -2
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/pyproject.toml +1 -1
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/pz_rail_astro_tools.egg-info/PKG-INFO +2 -2
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/pz_rail_astro_tools.egg-info/requires.txt +1 -1
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/astro_tools/_version.py +2 -2
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/creation/degraders/photometric_errors.py +120 -2
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/pipelines/degradation/apply_phot_errors.py +4 -2
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/tests/astro_tools/test_degraders.py +17 -3
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/.copier-answers.yml +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/.github/ISSUE_TEMPLATE/0-general_issue.md +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/.github/ISSUE_TEMPLATE/1-bug_report.md +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/.github/ISSUE_TEMPLATE/2-feature_request.md +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/.github/pull_request_template.md +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/.github/workflows/add-issue-to-project-tracker.yml +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/.github/workflows/linting.yml +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/.github/workflows/publish-to-pypi.yml +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/.github/workflows/smoke-test.yml +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/.github/workflows/testing-and-coverage.yml +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/.gitignore +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/.pre-commit-config.yaml +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/LICENSE +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/README.md +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/environment.yml +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/setup.cfg +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/setup.py +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/pz_rail_astro_tools.egg-info/SOURCES.txt +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/pz_rail_astro_tools.egg-info/dependency_links.txt +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/pz_rail_astro_tools.egg-info/top_level.txt +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/astro_tools/__init__.py +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/creation/degraders/grid_selection.py +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/creation/degraders/observing_condition_degrader.py +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/creation/degraders/spectroscopic_degraders.py +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/creation/degraders/spectroscopic_selections.py +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/creation/degraders/unrec_bl_model.py +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/creation/engines/gcr_engine.py +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/examples_data/creation_data/data/HSC_grid_settings.pkl +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/examples_data/creation_data/data/hsc_ratios_and_specz.hdf5 +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/examples_data/creation_data/data/survey_conditions/DC2-dr6-galcounts-i20-i25.3-nside-128.fits +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/examples_data/creation_data/data/survey_conditions/DC2-mask-neg-nside-128.fits +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/examples_data/creation_data/data/survey_conditions/minion_1016_dc2_Median_airmass_i_and_nightlt1825_HEAL.fits +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/examples_data/creation_data/data/survey_conditions/minion_1016_dc2_Median_fiveSigmaDepth_i_and_nightlt1825_HEAL.fits +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/examples_data/testdata/rubin_dm_dc2_example2.pq +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/pipelines/degradation/blending.py +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/pipelines/degradation/spectroscopic_selection_pipeline.py +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/pipelines/degradation/truth_to_observed.py +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/tools/photometry_tools.py +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/tests/astro_tools/gcr_test_data/schema.yaml +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/tests/astro_tools/gcr_test_data/test_object_tract_4850.hdf5 +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/tests/astro_tools/test_core.py +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/tests/astro_tools/test_gcr_engine.py +0 -0
- {pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/tests/astro_tools/test_pipline.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pz-rail-astro-tools
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.3
|
|
4
4
|
Author-email: "LSST Dark Energy Science Collaboration (DESC)" <lsst-desc-rail-admin@slac.stanford.edu>
|
|
5
5
|
License: MIT License
|
|
6
6
|
|
|
@@ -39,7 +39,7 @@ Requires-Dist: numpy
|
|
|
39
39
|
Requires-Dist: pandas>=2.2.2
|
|
40
40
|
Requires-Dist: astropy
|
|
41
41
|
Requires-Dist: healpy
|
|
42
|
-
Requires-Dist: photerr
|
|
42
|
+
Requires-Dist: photerr>=1.4.0
|
|
43
43
|
Requires-Dist: dustmaps
|
|
44
44
|
Requires-Dist: pz-hyperbolic-temp
|
|
45
45
|
Requires-Dist: lsstdesc-gcr-catalogs
|
{pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/pz_rail_astro_tools.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pz-rail-astro-tools
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.3
|
|
4
4
|
Author-email: "LSST Dark Energy Science Collaboration (DESC)" <lsst-desc-rail-admin@slac.stanford.edu>
|
|
5
5
|
License: MIT License
|
|
6
6
|
|
|
@@ -39,7 +39,7 @@ Requires-Dist: numpy
|
|
|
39
39
|
Requires-Dist: pandas>=2.2.2
|
|
40
40
|
Requires-Dist: astropy
|
|
41
41
|
Requires-Dist: healpy
|
|
42
|
-
Requires-Dist: photerr
|
|
42
|
+
Requires-Dist: photerr>=1.4.0
|
|
43
43
|
Requires-Dist: dustmaps
|
|
44
44
|
Requires-Dist: pz-hyperbolic-temp
|
|
45
45
|
Requires-Dist: lsstdesc-gcr-catalogs
|
|
@@ -12,8 +12,23 @@ from photerr import LsstErrorModel as peLsstErrorModel
|
|
|
12
12
|
from photerr import LsstErrorParams as peLsstErrorParams
|
|
13
13
|
from photerr import RomanErrorModel as peRomanErrorModel
|
|
14
14
|
from photerr import RomanErrorParams as peRomanErrorParams
|
|
15
|
+
|
|
16
|
+
from photerr import RomanWideErrorModel as peRomanWideErrorModel
|
|
17
|
+
from photerr import RomanWideErrorParams as peRomanWideErrorParams
|
|
18
|
+
from photerr import RomanMediumErrorModel as peRomanMediumErrorModel
|
|
19
|
+
from photerr import RomanMediumErrorParams as peRomanMediumErrorParams
|
|
20
|
+
from photerr import RomanDeepErrorModel as peRomanDeepErrorModel
|
|
21
|
+
from photerr import RomanDeepErrorParams as peRomanDeepErrorParams
|
|
22
|
+
from photerr import RomanUltraDeepErrorModel as peRomanUltraDeepErrorModel
|
|
23
|
+
from photerr import RomanUltraDeepErrorParams as peRomanUltraDeepErrorParams
|
|
24
|
+
|
|
15
25
|
from photerr import EuclidErrorModel as peEuclidErrorModel
|
|
16
26
|
from photerr import EuclidErrorParams as peEuclidErrorParams
|
|
27
|
+
from photerr import EuclidWideErrorModel as peEuclidWideErrorModel
|
|
28
|
+
from photerr import EuclidWideErrorParams as peEuclidWideErrorParams
|
|
29
|
+
from photerr import EuclidDeepErrorModel as peEuclidDeepErrorModel
|
|
30
|
+
from photerr import EuclidDeepErrorParams as peEuclidDeepErrorParams
|
|
31
|
+
|
|
17
32
|
from rail.creation.noisifier import Noisifier
|
|
18
33
|
|
|
19
34
|
class PhotoErrorModel(Noisifier):
|
|
@@ -132,12 +147,79 @@ class RomanErrorModel(PhotoErrorModel):
|
|
|
132
147
|
self.reload_pars(args)
|
|
133
148
|
self.peNoiseModel = peRomanErrorModel
|
|
134
149
|
|
|
135
|
-
|
|
150
|
+
|
|
151
|
+
class RomanWideErrorModel(PhotoErrorModel):
|
|
152
|
+
|
|
153
|
+
"""
|
|
154
|
+
The Roman WideError model, defined by peRomanWideErrorParams and peRomanWideErrorModel
|
|
155
|
+
"""
|
|
156
|
+
|
|
157
|
+
name = "RomanWideErrorModel"
|
|
158
|
+
|
|
159
|
+
def __init__(self, args, **kwargs):
|
|
160
|
+
|
|
161
|
+
super().__init__(args, **kwargs)
|
|
162
|
+
|
|
163
|
+
self.set_params(peRomanWideErrorParams)
|
|
164
|
+
self.reload_pars(args)
|
|
165
|
+
self.peNoiseModel = peRomanWideErrorModel
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
class RomanMediumErrorModel(PhotoErrorModel):
|
|
169
|
+
|
|
170
|
+
"""
|
|
171
|
+
The Roman Medium Error model, defined by peRomanMediumErrorParams and peRomanMediumErrorModel
|
|
172
|
+
"""
|
|
173
|
+
|
|
174
|
+
name = "RomanMediumErrorModel"
|
|
175
|
+
|
|
176
|
+
def __init__(self, args, **kwargs):
|
|
177
|
+
|
|
178
|
+
super().__init__(args, **kwargs)
|
|
179
|
+
|
|
180
|
+
self.set_params(peRomanMediumErrorParams)
|
|
181
|
+
self.reload_pars(args)
|
|
182
|
+
self.peNoiseModel = peRomanMediumErrorModel
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
class RomanDeepErrorModel(PhotoErrorModel):
|
|
186
|
+
|
|
187
|
+
"""
|
|
188
|
+
The Roman Deep Error model, defined by peRomanDeepErrorParams and peRomanDeepErrorModel
|
|
189
|
+
"""
|
|
190
|
+
|
|
191
|
+
name = "RomanDeepErrorModel"
|
|
192
|
+
|
|
193
|
+
def __init__(self, args, **kwargs):
|
|
194
|
+
|
|
195
|
+
super().__init__(args, **kwargs)
|
|
196
|
+
|
|
197
|
+
self.set_params(peRomanDeepErrorParams)
|
|
198
|
+
self.reload_pars(args)
|
|
199
|
+
self.peNoiseModel = peRomanDeepErrorModel
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
class RomanUltraDeepErrorModel(PhotoErrorModel):
|
|
203
|
+
|
|
204
|
+
"""
|
|
205
|
+
The Roman UltraDeep Error model, defined by peRomanUltraDeepErrorParams and peRomanUltraDeepErrorModel
|
|
206
|
+
"""
|
|
207
|
+
|
|
208
|
+
name = "RomanUltraDeepErrorModel"
|
|
209
|
+
|
|
210
|
+
def __init__(self, args, **kwargs):
|
|
211
|
+
|
|
212
|
+
super().__init__(args, **kwargs)
|
|
213
|
+
|
|
214
|
+
self.set_params(peRomanUltraDeepErrorParams)
|
|
215
|
+
self.reload_pars(args)
|
|
216
|
+
self.peNoiseModel = peRomanUltraDeepErrorModel
|
|
217
|
+
|
|
136
218
|
|
|
137
219
|
class EuclidErrorModel(PhotoErrorModel):
|
|
138
220
|
|
|
139
221
|
"""
|
|
140
|
-
The
|
|
222
|
+
The Euclid Error model, defined by peEuclidErrorParams and peEuclidErrorModel
|
|
141
223
|
"""
|
|
142
224
|
|
|
143
225
|
name = "EuclidErrorModel"
|
|
@@ -149,3 +231,39 @@ class EuclidErrorModel(PhotoErrorModel):
|
|
|
149
231
|
self.set_params(peEuclidErrorParams)
|
|
150
232
|
self.reload_pars(args)
|
|
151
233
|
self.peNoiseModel = peEuclidErrorModel
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
class EuclidWideErrorModel(PhotoErrorModel):
|
|
237
|
+
|
|
238
|
+
"""
|
|
239
|
+
The Euclid Wide Error model, defined by peEuclidWideErrorParams and peEuclidWideErrorModel
|
|
240
|
+
"""
|
|
241
|
+
|
|
242
|
+
name = "EuclidWideErrorModel"
|
|
243
|
+
|
|
244
|
+
def __init__(self, args, **kwargs):
|
|
245
|
+
|
|
246
|
+
super().__init__(args, **kwargs)
|
|
247
|
+
|
|
248
|
+
self.set_params(peEuclidWideErrorParams)
|
|
249
|
+
self.reload_pars(args)
|
|
250
|
+
self.peNoiseModel = peEuclidWideErrorModel
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
class EuclidDeepErrorModel(PhotoErrorModel):
|
|
254
|
+
|
|
255
|
+
"""
|
|
256
|
+
The Euclid Deep Error model, defined by peEuclidDeepErrorParams and peEuclidDeepErrorModel
|
|
257
|
+
"""
|
|
258
|
+
|
|
259
|
+
name = "EuclidDeepErrorModel"
|
|
260
|
+
|
|
261
|
+
def __init__(self, args, **kwargs):
|
|
262
|
+
|
|
263
|
+
super().__init__(args, **kwargs)
|
|
264
|
+
|
|
265
|
+
self.set_params(peEuclidDeepErrorParams)
|
|
266
|
+
self.reload_pars(args)
|
|
267
|
+
self.peNoiseModel = peEuclidDeepErrorModel
|
|
268
|
+
|
|
269
|
+
|
|
@@ -56,8 +56,7 @@ class ApplyPhotErrorsPipeline(RailPipeline):
|
|
|
56
56
|
self.reddener = Reddener.build(
|
|
57
57
|
dustmap_dir=dustmap_dir,
|
|
58
58
|
copy_all_cols=True,
|
|
59
|
-
)
|
|
60
|
-
|
|
59
|
+
)
|
|
61
60
|
previous_stage = self.reddener
|
|
62
61
|
full_rename_dict = catalog_utils.CatalogConfigBase.active_class().band_name_dict()
|
|
63
62
|
for key, val in error_models.items():
|
|
@@ -71,6 +70,9 @@ class ApplyPhotErrorsPipeline(RailPipeline):
|
|
|
71
70
|
connections=dict(input=previous_stage.io.output),
|
|
72
71
|
hdf5_groupname='',
|
|
73
72
|
renameDict=rename_dict,
|
|
73
|
+
minorCol='minor',
|
|
74
|
+
majorCol='major',
|
|
75
|
+
extendedType='gaap',
|
|
74
76
|
)
|
|
75
77
|
self.add_stage(the_error_model)
|
|
76
78
|
previous_stage = the_error_model
|
|
@@ -13,7 +13,7 @@ from rail.creation.degraders.spectroscopic_degraders import InvRedshiftIncomplet
|
|
|
13
13
|
from rail.creation.degraders.spectroscopic_selections import *
|
|
14
14
|
from rail.creation.degraders.observing_condition_degrader import ObsCondition
|
|
15
15
|
from rail.creation.degraders.grid_selection import GridSelection
|
|
16
|
-
from rail.creation.degraders.photometric_errors import
|
|
16
|
+
from rail.creation.degraders.photometric_errors import *
|
|
17
17
|
from rail.creation.degraders.unrec_bl_model import UnrecBlModel
|
|
18
18
|
|
|
19
19
|
|
|
@@ -414,9 +414,23 @@ def test_LSSTErrorModel_returns_correct_columns(data):
|
|
|
414
414
|
os.remove(degrader.get_output(degrader.get_aliased_tag("output"), final_name=True))
|
|
415
415
|
|
|
416
416
|
|
|
417
|
-
|
|
417
|
+
@pytest.mark.parametrize(
|
|
418
|
+
"error_model_class",
|
|
419
|
+
[
|
|
420
|
+
(RomanErrorModel),
|
|
421
|
+
(RomanWideErrorModel),
|
|
422
|
+
(RomanMediumErrorModel),
|
|
423
|
+
(RomanDeepErrorModel),
|
|
424
|
+
(RomanUltraDeepErrorModel),
|
|
425
|
+
(EuclidErrorModel),
|
|
426
|
+
(EuclidWideErrorModel),
|
|
427
|
+
(EuclidDeepErrorModel),
|
|
428
|
+
]
|
|
429
|
+
)
|
|
430
|
+
def test_error_models(data, error_model_class):
|
|
418
431
|
# Setup the stage
|
|
419
|
-
degrader =
|
|
432
|
+
degrader = error_model_class.make_stage()
|
|
433
|
+
assert degrader
|
|
420
434
|
|
|
421
435
|
|
|
422
436
|
def test_BLModel(data_for_bl):
|
|
File without changes
|
{pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/.github/ISSUE_TEMPLATE/0-general_issue.md
RENAMED
|
File without changes
|
{pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/.github/ISSUE_TEMPLATE/1-bug_report.md
RENAMED
|
File without changes
|
{pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/.github/ISSUE_TEMPLATE/2-feature_request.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/.github/workflows/publish-to-pypi.yml
RENAMED
|
File without changes
|
|
File without changes
|
{pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/.github/workflows/testing-and-coverage.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/pz_rail_astro_tools.egg-info/SOURCES.txt
RENAMED
|
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
|
{pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/creation/engines/gcr_engine.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/src/rail/pipelines/degradation/blending.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/tests/astro_tools/gcr_test_data/schema.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pz_rail_astro_tools-1.1.2 → pz_rail_astro_tools-1.1.3}/tests/astro_tools/test_gcr_engine.py
RENAMED
|
File without changes
|
|
File without changes
|