pz-rail-astro-tools 1.0.1__tar.gz → 1.0.2__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.

Files changed (46) hide show
  1. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/PKG-INFO +1 -1
  2. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/pz_rail_astro_tools.egg-info/PKG-INFO +1 -1
  3. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/rail/astro_tools/_version.py +2 -2
  4. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/rail/tools/photometry_tools.py +5 -2
  5. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/.copier-answers.yml +0 -0
  6. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/.github/ISSUE_TEMPLATE/0-general_issue.md +0 -0
  7. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/.github/ISSUE_TEMPLATE/1-bug_report.md +0 -0
  8. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/.github/ISSUE_TEMPLATE/2-feature_request.md +0 -0
  9. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/.github/pull_request_template.md +0 -0
  10. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/.github/workflows/add-issue-to-project-tracker.yml +0 -0
  11. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/.github/workflows/linting.yml +0 -0
  12. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/.github/workflows/publish-to-pypi.yml +0 -0
  13. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/.github/workflows/smoke-test.yml +0 -0
  14. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/.github/workflows/testing-and-coverage.yml +0 -0
  15. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/.gitignore +0 -0
  16. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/.pre-commit-config.yaml +0 -0
  17. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/LICENSE +0 -0
  18. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/README.md +0 -0
  19. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/environment.yml +0 -0
  20. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/pyproject.toml +0 -0
  21. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/setup.cfg +0 -0
  22. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/setup.py +0 -0
  23. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/pz_rail_astro_tools.egg-info/SOURCES.txt +0 -0
  24. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/pz_rail_astro_tools.egg-info/dependency_links.txt +0 -0
  25. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/pz_rail_astro_tools.egg-info/requires.txt +0 -0
  26. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/pz_rail_astro_tools.egg-info/top_level.txt +0 -0
  27. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/rail/astro_tools/__init__.py +0 -0
  28. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/rail/creation/degraders/grid_selection.py +0 -0
  29. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/rail/creation/degraders/lsst_error_model.py +0 -0
  30. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/rail/creation/degraders/observing_condition_degrader.py +0 -0
  31. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/rail/creation/degraders/photometric_errors.py +0 -0
  32. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/rail/creation/degraders/spectroscopic_degraders.py +0 -0
  33. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/rail/creation/degraders/spectroscopic_selections.py +0 -0
  34. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/rail/creation/engines/gcr_engine.py +0 -0
  35. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/rail/examples_data/creation_data/data/HSC_grid_settings.pkl +0 -0
  36. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/rail/examples_data/creation_data/data/hsc_ratios_and_specz.hdf5 +0 -0
  37. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/rail/examples_data/creation_data/data/survey_conditions/DC2-dr6-galcounts-i20-i25.3-nside-128.fits +0 -0
  38. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/rail/examples_data/creation_data/data/survey_conditions/DC2-mask-neg-nside-128.fits +0 -0
  39. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/rail/examples_data/creation_data/data/survey_conditions/minion_1016_dc2_Median_airmass_i_and_nightlt1825_HEAL.fits +0 -0
  40. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/rail/examples_data/creation_data/data/survey_conditions/minion_1016_dc2_Median_fiveSigmaDepth_i_and_nightlt1825_HEAL.fits +0 -0
  41. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/src/rail/examples_data/testdata/rubin_dm_dc2_example2.pq +0 -0
  42. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/tests/astro_tools/gcr_test_data/schema.yaml +0 -0
  43. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/tests/astro_tools/gcr_test_data/test_object_tract_4850.hdf5 +0 -0
  44. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/tests/astro_tools/test_core.py +0 -0
  45. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/tests/astro_tools/test_degraders.py +0 -0
  46. {pz_rail_astro_tools-1.0.1 → pz_rail_astro_tools-1.0.2}/tests/astro_tools/test_gcr_engine.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pz-rail-astro-tools
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Author-email: "LSST Dark Energy Science Collaboration (DESC)" <lsst-desc-rail-admin@slac.stanford.edu>
5
5
  License: MIT License
6
6
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pz-rail-astro-tools
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Author-email: "LSST Dark Energy Science Collaboration (DESC)" <lsst-desc-rail-admin@slac.stanford.edu>
5
5
  License: MIT License
6
6
 
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.0.1'
16
- __version_tuple__ = version_tuple = (1, 0, 1)
15
+ __version__ = version = '1.0.2'
16
+ __version_tuple__ = version_tuple = (1, 0, 2)
@@ -13,6 +13,7 @@ from ceci.config import StageParameter as Param
13
13
  from rail.core.data import PqHandle
14
14
  from rail.core.stage import RailStage
15
15
  from rail.core.data import PqHandle, Hdf5Handle
16
+ from rail.core.common_params import SHARED_PARAMS
16
17
 
17
18
  import hyperbolic # https://github.com/jlvdb/hyperbolic
18
19
 
@@ -331,7 +332,7 @@ class HyperbolicMagnitudes(PhotometryManipulator):
331
332
  Input table with photometry (magnitudes or flux columns and their respective
332
333
  uncertainties) as defined by the configuration.
333
334
  parameters : `PqHandle`
334
- Table with smoothing parameters per photometric band, determined by
335
+ Table witdh smoothing parameters per photometric band, determined by
335
336
  `HyperbolicSmoothing`.
336
337
 
337
338
  Returns
@@ -420,6 +421,8 @@ class DustMapBase(RailStage):
420
421
 
421
422
  config_options = RailStage.config_options.copy()
422
423
  config_options.update(bands='ugrizy')
424
+ config_options.update(ra_name='ra')
425
+ config_options.update(dec_name='dec')
423
426
  config_options.update(mag_name="mag_{band}_lsst")
424
427
  config_options.update(band_a_env=[4.81,3.64,2.70,2.06,1.58,1.31])
425
428
  config_options.update(dustmap_name='sfd')
@@ -456,7 +459,7 @@ class DustMapBase(RailStage):
456
459
  def run(self):
457
460
  data = self.get_data('input', allow_missing=True)
458
461
  out_data = {}
459
- coords = SkyCoord(data['ra'], data['dec'], unit = 'deg',frame='fk5')
462
+ coords = SkyCoord(data[self.config.ra_name], data[self.config.dec_name], unit = 'deg',frame='fk5')
460
463
  dust_map_dict = dict(sfd=dustmaps_sfd.SFDQuery)
461
464
  try:
462
465
  dust_map_class = dust_map_dict[self.config.dustmap_name]