pz-rail-astro-tools 1.1.4__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.
Files changed (54) hide show
  1. pz_rail_astro_tools-1.1.4/.copier-answers.yml +8 -0
  2. pz_rail_astro_tools-1.1.4/.github/ISSUE_TEMPLATE/0-general_issue.md +8 -0
  3. pz_rail_astro_tools-1.1.4/.github/ISSUE_TEMPLATE/1-bug_report.md +17 -0
  4. pz_rail_astro_tools-1.1.4/.github/ISSUE_TEMPLATE/2-feature_request.md +18 -0
  5. pz_rail_astro_tools-1.1.4/.github/pull_request_template.md +8 -0
  6. pz_rail_astro_tools-1.1.4/.github/workflows/add-issue-to-project-tracker.yml +20 -0
  7. pz_rail_astro_tools-1.1.4/.github/workflows/linting.yml +34 -0
  8. pz_rail_astro_tools-1.1.4/.github/workflows/publish-to-pypi.yml +37 -0
  9. pz_rail_astro_tools-1.1.4/.github/workflows/smoke-test.yml +36 -0
  10. pz_rail_astro_tools-1.1.4/.github/workflows/testing-and-coverage.yml +40 -0
  11. pz_rail_astro_tools-1.1.4/.gitignore +140 -0
  12. pz_rail_astro_tools-1.1.4/.pre-commit-config.yaml +76 -0
  13. pz_rail_astro_tools-1.1.4/LICENSE +21 -0
  14. pz_rail_astro_tools-1.1.4/PKG-INFO +100 -0
  15. pz_rail_astro_tools-1.1.4/README.md +46 -0
  16. pz_rail_astro_tools-1.1.4/environment.yml +10 -0
  17. pz_rail_astro_tools-1.1.4/pyproject.toml +77 -0
  18. pz_rail_astro_tools-1.1.4/setup.cfg +4 -0
  19. pz_rail_astro_tools-1.1.4/setup.py +3 -0
  20. pz_rail_astro_tools-1.1.4/src/pz_rail_astro_tools.egg-info/PKG-INFO +100 -0
  21. pz_rail_astro_tools-1.1.4/src/pz_rail_astro_tools.egg-info/SOURCES.txt +52 -0
  22. pz_rail_astro_tools-1.1.4/src/pz_rail_astro_tools.egg-info/dependency_links.txt +1 -0
  23. pz_rail_astro_tools-1.1.4/src/pz_rail_astro_tools.egg-info/requires.txt +18 -0
  24. pz_rail_astro_tools-1.1.4/src/pz_rail_astro_tools.egg-info/top_level.txt +1 -0
  25. pz_rail_astro_tools-1.1.4/src/rail/astro_tools/__init__.py +10 -0
  26. pz_rail_astro_tools-1.1.4/src/rail/astro_tools/_version.py +34 -0
  27. pz_rail_astro_tools-1.1.4/src/rail/creation/degraders/grid_selection.py +225 -0
  28. pz_rail_astro_tools-1.1.4/src/rail/creation/degraders/lya_degrader.py +474 -0
  29. pz_rail_astro_tools-1.1.4/src/rail/creation/degraders/observing_condition_degrader.py +495 -0
  30. pz_rail_astro_tools-1.1.4/src/rail/creation/degraders/photometric_errors.py +269 -0
  31. pz_rail_astro_tools-1.1.4/src/rail/creation/degraders/spectroscopic_degraders.py +134 -0
  32. pz_rail_astro_tools-1.1.4/src/rail/creation/degraders/spectroscopic_selections.py +585 -0
  33. pz_rail_astro_tools-1.1.4/src/rail/creation/degraders/unrec_bl_model.py +184 -0
  34. pz_rail_astro_tools-1.1.4/src/rail/creation/engines/gcr_engine.py +79 -0
  35. pz_rail_astro_tools-1.1.4/src/rail/examples_data/creation_data/data/HSC_grid_settings.pkl +0 -0
  36. pz_rail_astro_tools-1.1.4/src/rail/examples_data/creation_data/data/hsc_ratios_and_specz.hdf5 +0 -0
  37. pz_rail_astro_tools-1.1.4/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.1.4/src/rail/examples_data/creation_data/data/survey_conditions/DC2-mask-neg-nside-128.fits +0 -0
  39. pz_rail_astro_tools-1.1.4/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.1.4/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.1.4/src/rail/examples_data/testdata/rubin_dm_dc2_example2.pq +0 -0
  42. pz_rail_astro_tools-1.1.4/src/rail/pipelines/degradation/apply_phot_errors.py +84 -0
  43. pz_rail_astro_tools-1.1.4/src/rail/pipelines/degradation/blending.py +28 -0
  44. pz_rail_astro_tools-1.1.4/src/rail/pipelines/degradation/spectroscopic_selection_pipeline.py +75 -0
  45. pz_rail_astro_tools-1.1.4/src/rail/pipelines/degradation/truth_to_observed.py +94 -0
  46. pz_rail_astro_tools-1.1.4/src/rail/tools/filter_tools.py +63 -0
  47. pz_rail_astro_tools-1.1.4/src/rail/tools/photometry_tools.py +528 -0
  48. pz_rail_astro_tools-1.1.4/tests/astro_tools/gcr_test_data/schema.yaml +2461 -0
  49. pz_rail_astro_tools-1.1.4/tests/astro_tools/gcr_test_data/test_object_tract_4850.hdf5 +0 -0
  50. pz_rail_astro_tools-1.1.4/tests/astro_tools/test_core.py +217 -0
  51. pz_rail_astro_tools-1.1.4/tests/astro_tools/test_degraders.py +487 -0
  52. pz_rail_astro_tools-1.1.4/tests/astro_tools/test_filter_tools.py +36 -0
  53. pz_rail_astro_tools-1.1.4/tests/astro_tools/test_gcr_engine.py +38 -0
  54. pz_rail_astro_tools-1.1.4/tests/astro_tools/test_pipline.py +17 -0
@@ -0,0 +1,8 @@
1
+ # Changes here will be overwritten by Copier
2
+ _commit: v0.3.3
3
+ _src_path: gh:LSSTDESC/RAIL-project-template
4
+ author_email: lsst-desc-rail-admin@slac.stanford.edu
5
+ author_name: LSST Dark Energy Science Collaboration (DESC)
6
+ create_example_module: false
7
+ package_name: astro_tools
8
+ project_name: pz-rail-astro-tools
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: General issue
3
+ about: Quickly create a general issue
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: Bug report
3
+ about: Tell us about a problem to fix
4
+ title: 'Short description'
5
+ labels: 'bug'
6
+ assignees: ''
7
+
8
+ ---
9
+ **Bug report**
10
+
11
+
12
+ **Before submitting**
13
+ Please check the following:
14
+
15
+ - [ ] I have described the situation in which the bug arose, including what code was executed, information about my environment, and any applicable data others will need to reproduce the problem.
16
+ - [ ] I have included available evidence of the unexpected behavior (including error messages, screenshots, and/or plots) as well as a descriprion of what I expected instead.
17
+ - [ ] If I have a solution in mind, I have provided an explanation and/or pseudocode and/or task list.
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: 'Short description'
5
+ labels: 'enhancement'
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ ** Feature request**
11
+
12
+
13
+ **Before submitting**
14
+ Please check the following:
15
+
16
+ - [ ] I have described the purpose of the suggested change, specifying what I need the enhancement to accomplish, i.e. what problem it solves.
17
+ - [ ] I have included any relevant links, screenshots, environment information, and data relevant to implementing the requested feature, as well as pseudocode for how I want to access the new functionality.
18
+ - [ ] If I have ideas for how the new feature could be implemented, I have provided explanations and/or pseudocode and/or task lists for the steps.
@@ -0,0 +1,8 @@
1
+ ## Problem & Solution Description (including issue #)
2
+
3
+
4
+ ## Code Quality
5
+ - [ ] My code follows [the code style of this project](https://rail-hub.readthedocs.io/en/latest/source/contributing.html#naming-conventions)
6
+ - [ ] I have written unit tests or justified all instances of `#pragma: no cover`; in the case of a bugfix, a new test that breaks as a result of the bug has been added
7
+ - [ ] My code contains relevant comments and necessary documentation for future maintainers; the change is reflected in applicable demos/tutorials (with output cleared!) and added/updated docstrings use the [NumPy docstring format](https://numpydoc.readthedocs.io/en/latest/format.html)
8
+ - [ ] Any breaking changes, described above, are accompanied by backwards compatibility and deprecation warnings
@@ -0,0 +1,20 @@
1
+ name: Add bugs to bugs project
2
+
3
+ on:
4
+ issues:
5
+ types:
6
+ - opened
7
+ pull_request:
8
+ types: [opened, reopened]
9
+
10
+ jobs:
11
+ add-to-project:
12
+ name: Add issue to project
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/add-to-project@v0.4.0
16
+ with:
17
+ # You can target a repository in a different organization
18
+ # to the issue
19
+ project-url: https://github.com/orgs/LSSTDESC/projects/6
20
+ github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
@@ -0,0 +1,34 @@
1
+ # This workflow will install Python dependencies, then perform static linting analysis.
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
+
4
+ name: Lint
5
+
6
+ on:
7
+ push:
8
+ branches: [ main ]
9
+ pull_request:
10
+ branches: [ main ]
11
+
12
+ jobs:
13
+ build:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v3
17
+ - name: Set up Python
18
+ uses: actions/setup-python@v4
19
+ with:
20
+ python-version: '3.11'
21
+ - name: Install dependencies
22
+ run: |
23
+ sudo apt-get update
24
+ python -m pip install --upgrade pip
25
+ pip install wheel numpy
26
+ pip install .
27
+ pip install .[dev]
28
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29
+ - name: Analyze code with linter
30
+ run: |
31
+ pylint -rn -sn --recursive=y ./src
32
+ pylint -rn -sn --recursive=y ./tests
33
+ # the following line allows the CI test to pass, even if pylint fails
34
+ continue-on-error: true
@@ -0,0 +1,37 @@
1
+ # This workflow will upload a Python Package using Twine when a release is created
2
+ # For more information see: https://github.com/pypa/gh-action-pypi-publish#trusted-publishing
3
+
4
+ # This workflow uses actions that are not certified by GitHub.
5
+ # They are provided by a third-party and are governed by
6
+ # separate terms of service, privacy policy, and support
7
+ # documentation.
8
+
9
+ name: Upload Python Package
10
+
11
+ on:
12
+ release:
13
+ types: [published]
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ deploy:
20
+
21
+ runs-on: ubuntu-latest
22
+ permissions:
23
+ id-token: write
24
+ steps:
25
+ - uses: actions/checkout@v3
26
+ - name: Set up Python
27
+ uses: actions/setup-python@v4
28
+ with:
29
+ python-version: '3.10'
30
+ - name: Install dependencies
31
+ run: |
32
+ python -m pip install --upgrade pip
33
+ pip install build
34
+ - name: Build package
35
+ run: python -m build
36
+ - name: Publish package
37
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,36 @@
1
+ # This workflow will run daily at 06:45.
2
+ # It will install Python dependencies and run tests with a variety of Python versions.
3
+
4
+ name: Unit test smoke test
5
+
6
+ on:
7
+ schedule:
8
+ - cron: 45 6 * * *
9
+
10
+ # Allows you to run this workflow manually from the Actions tab
11
+ workflow_dispatch:
12
+
13
+ jobs:
14
+ build:
15
+
16
+ runs-on: ubuntu-latest
17
+ strategy:
18
+ matrix:
19
+ python-version: ['3.9', '3.10', '3.11']
20
+
21
+ steps:
22
+ - uses: actions/checkout@v3
23
+ - name: Set up Python ${{ matrix.python-version }}
24
+ uses: actions/setup-python@v4
25
+ with:
26
+ python-version: ${{ matrix.python-version }}
27
+ - name: Install dependencies
28
+ run: |
29
+ sudo apt-get update
30
+ python -m pip install --upgrade pip
31
+ pip install .
32
+ pip install .[dev]
33
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
34
+ - name: Run unit tests with pytest
35
+ run: |
36
+ python -m pytest tests
@@ -0,0 +1,40 @@
1
+ # This workflow will install Python dependencies, run tests and report code coverage with a variety of Python versions
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
+
4
+ name: Unit test and code coverage
5
+
6
+ on:
7
+ push:
8
+ branches: [ main ]
9
+ pull_request:
10
+ branches: [ main ]
11
+
12
+ jobs:
13
+ build:
14
+
15
+ runs-on: ubuntu-latest
16
+ strategy:
17
+ matrix:
18
+ python-version: ['3.10', '3.11']
19
+
20
+ steps:
21
+ - uses: actions/checkout@v3
22
+ - name: Set up Python ${{ matrix.python-version }}
23
+ uses: actions/setup-python@v4
24
+ with:
25
+ python-version: ${{ matrix.python-version }}
26
+ - name: Install dependencies
27
+ run: |
28
+ sudo apt-get update
29
+ python -m pip install --upgrade pip
30
+ pip install wheel numpy
31
+ pip install .
32
+ pip install .[dev]
33
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
34
+ - name: Run unit tests with pytest
35
+ run: |
36
+ python -m pytest tests --cov=astro_tools --cov-report=xml
37
+ - name: Upload coverage report to codecov
38
+ uses: codecov/codecov-action@v4
39
+ with:
40
+ token: ${{ secrets.CODECOV_TOKEN }}
@@ -0,0 +1,140 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ pip-wheel-metadata/
24
+ share/python-wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+ MANIFEST
29
+ _version.py
30
+
31
+ # PyInstaller
32
+ # Usually these files are written by a python script from a template
33
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
34
+ *.manifest
35
+ *.spec
36
+
37
+ # Installer logs
38
+ pip-log.txt
39
+ pip-delete-this-directory.txt
40
+
41
+ # Unit test / coverage reports
42
+ htmlcov/
43
+ .tox/
44
+ .nox/
45
+ .coverage
46
+ .coverage.*
47
+ .cache
48
+ nosetests.xml
49
+ coverage.xml
50
+ *.cover
51
+ *.py,cover
52
+ .hypothesis/
53
+ .pytest_cache/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+ _readthedocs/
75
+
76
+ # PyBuilder
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ .python-version
88
+
89
+ # pipenv
90
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
91
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
92
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
93
+ # install all needed dependencies.
94
+ #Pipfile.lock
95
+
96
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
97
+ __pypackages__/
98
+
99
+ # Celery stuff
100
+ celerybeat-schedule
101
+ celerybeat.pid
102
+
103
+ # SageMath parsed files
104
+ *.sage.py
105
+
106
+ # Environments
107
+ .env
108
+ .venv
109
+ env/
110
+ venv/
111
+ ENV/
112
+ env.bak/
113
+ venv.bak/
114
+
115
+ # Spyder project settings
116
+ .spyderproject
117
+ .spyproject
118
+
119
+ # Rope project settings
120
+ .ropeproject
121
+
122
+ # mkdocs documentation
123
+ /site
124
+
125
+ # mypy
126
+ .mypy_cache/
127
+ .dmypy.json
128
+ dmypy.json
129
+
130
+ # Pyre type checker
131
+ .pyre/
132
+
133
+ # vscode
134
+ .vscode/
135
+
136
+ # dask
137
+ dask-worker-space/
138
+
139
+ # tmp directory
140
+ tmp/
@@ -0,0 +1,76 @@
1
+ fail_fast: true
2
+ repos:
3
+
4
+ # Clear output from jupyter notebooks so that only the input cells are committed.
5
+ - repo: local
6
+ hooks:
7
+ - id: jupyter-nb-clear-output
8
+ name: Clear output from Jupyter notebooks
9
+ description: Clear output from Jupyter notebooks.
10
+ files: \.ipynb$
11
+ stages: [commit]
12
+ language: system
13
+ entry: jupyter nbconvert --clear-output
14
+
15
+ # prevents committing directly branches named 'main' and 'master'.
16
+ - repo: https://github.com/pre-commit/pre-commit-hooks
17
+ rev: v4.4.0
18
+ hooks:
19
+ - id: no-commit-to-branch
20
+ name: Prevent main branch commits
21
+ description: Prevent the user from committing directly to the primary branch.
22
+ - id: check-added-large-files
23
+ name: Check for large files
24
+ description: Prevent the user from committing very large files.
25
+ args: ['--maxkb=500']
26
+
27
+ # verify that pyproject.toml is well formed
28
+ - repo: https://github.com/abravalheri/validate-pyproject
29
+ rev: v0.12.1
30
+ hooks:
31
+ - id: validate-pyproject
32
+ name: Validate pyproject.toml
33
+ description: Verify that pyproject.toml adheres to the established schema.
34
+ # Analyze the src code style and report code that doesn't adhere.
35
+ - repo: local
36
+ hooks:
37
+ - id: pylint
38
+ name: pylint (python files in src/)
39
+ entry: pylint
40
+ language: system
41
+ types: [python]
42
+ files: ^src/
43
+ args:
44
+ [
45
+ "-rn", # Only display messages
46
+ "-sn", # Don't display the score
47
+ ]
48
+ # Analyze the tests code style and report code that doesn't adhere.
49
+ - repo: local
50
+ hooks:
51
+ - id: pylint
52
+ name: pylint (python files in tests/)
53
+ entry: pylint
54
+ language: system
55
+ types: [python]
56
+ files: ^tests/
57
+ args:
58
+ [
59
+ "-rn", # Only display messages
60
+ "-sn", # Don't display the score
61
+ ]
62
+
63
+ # Run unit tests, verify that they pass. Note that coverage is run against
64
+ # the ./src directory here because that is what will be committed. In the
65
+ # github workflow script, the coverage is run against the installed package
66
+ # and uploaded to Codecov by calling pytest like so:
67
+ # `python -m pytest --cov=<package_name> --cov-report=xml`
68
+ - repo: local
69
+ hooks:
70
+ - id: pytest-check
71
+ name: Run unit tests
72
+ description: Run unit tests with pytest.
73
+ entry: bash -c "if python -m pytest --co -qq; then python -m pytest --cov=./src --cov-report=html; fi"
74
+ language: system
75
+ pass_filenames: false
76
+ always_run: true
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 LSST Dark Energy Science Collaboration (DESC)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,100 @@
1
+ Metadata-Version: 2.4
2
+ Name: pz-rail-astro-tools
3
+ Version: 1.1.4
4
+ Author-email: "LSST Dark Energy Science Collaboration (DESC)" <lsst-desc-rail-admin@slac.stanford.edu>
5
+ License: MIT License
6
+
7
+ Copyright (c) 2023 LSST Dark Energy Science Collaboration (DESC)
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+
27
+ Classifier: Development Status :: 4 - Beta
28
+ Classifier: License :: OSI Approved :: MIT License
29
+ Classifier: Intended Audience :: Developers
30
+ Classifier: Intended Audience :: Science/Research
31
+ Classifier: Operating System :: OS Independent
32
+ Classifier: Programming Language :: Python
33
+ Requires-Python: >=3.9
34
+ Description-Content-Type: text/markdown
35
+ License-File: LICENSE
36
+ Requires-Dist: deprecated
37
+ Requires-Dist: pz-rail-base>=1.0.3
38
+ Requires-Dist: numpy
39
+ Requires-Dist: pandas>=2.2.2
40
+ Requires-Dist: astropy
41
+ Requires-Dist: healpy
42
+ Requires-Dist: photerr>=1.4.0
43
+ Requires-Dist: dustmaps
44
+ Requires-Dist: pz-hyperbolic-temp
45
+ Requires-Dist: lsstdesc-gcr-catalogs
46
+ Requires-Dist: FoFCatalogMatching
47
+ Provides-Extra: dev
48
+ Requires-Dist: tables-io[full]; extra == "dev"
49
+ Requires-Dist: pytest; extra == "dev"
50
+ Requires-Dist: pytest-cov; extra == "dev"
51
+ Requires-Dist: pre-commit; extra == "dev"
52
+ Requires-Dist: pylint; extra == "dev"
53
+ Dynamic: license-file
54
+
55
+ # pz-rail-astro-tools
56
+
57
+ [![Template](https://img.shields.io/badge/Template-LINCC%20Frameworks%20Python%20Project%20Template-brightgreen)](https://lincc-ppt.readthedocs.io/en/latest/)
58
+ [![codecov](https://codecov.io/gh/LSSTDESC/pz-rail-astro-tools/branch/main/graph/badge.svg)](https://codecov.io/gh/LSSTDESC/pz-rail-astro-tools)
59
+ [![PyPI](https://img.shields.io/pypi/v/astro_tools?color=blue&logo=pypi&logoColor=white)](https://pypi.org/project/astro_tools/)
60
+
61
+ TODO - add more about your project here.
62
+
63
+ ## RAIL: Redshift Assessment Infrastructure Layers
64
+
65
+ This package is part of the larger ecosystem of Photometric Redshifts
66
+ in [RAIL](https://github.com/LSSTDESC/RAIL).
67
+
68
+ ### Citing RAIL
69
+
70
+ RAIL is open source and may be used according to the terms of its [LICENSE](https://github.com/LSSTDESC/RAIL/blob/main/LICENSE) [(BSD 3-Clause)](https://opensource.org/licenses/BSD-3-Clause).
71
+ If you used RAIL in your study, please cite this repository <https://github.com/LSSTDESC/RAIL>, and RAIL Team et al. (2025) <https://arxiv.org/abs/2505.02928>
72
+ ```
73
+ @ARTICLE{2025arXiv250502928T,
74
+ author = {{The RAIL Team} and {van den Busch}, Jan Luca and {Charles}, Eric and {Cohen-Tanugi}, Johann and {Crafford}, Alice and {Crenshaw}, John Franklin and {Dagoret}, Sylvie and {De-Santiago}, Josue and {De Vicente}, Juan and {Hang}, Qianjun and {Joachimi}, Benjamin and {Joudaki}, Shahab and {Bryce Kalmbach}, J. and {Kannawadi}, Arun and {Liang}, Shuang and {Lynn}, Olivia and {Malz}, Alex I. and {Mandelbaum}, Rachel and {Merz}, Grant and {Moskowitz}, Irene and {Oldag}, Drew and {Ruiz-Zapatero}, Jaime and {Rahman}, Mubdi and {Rau}, Markus M. and {Schmidt}, Samuel J. and {Scora}, Jennifer and {Shirley}, Raphael and {St{\"o}lzner}, Benjamin and {Toribio San Cipriano}, Laura and {Tortorelli}, Luca and {Yan}, Ziang and {Zhang}, Tianqing and {the Dark Energy Science Collaboration}},
75
+ title = "{Redshift Assessment Infrastructure Layers (RAIL): Rubin-era photometric redshift stress-testing and at-scale production}",
76
+ journal = {arXiv e-prints},
77
+ keywords = {Instrumentation and Methods for Astrophysics, Cosmology and Nongalactic Astrophysics, Astrophysics of Galaxies},
78
+ year = 2025,
79
+ month = may,
80
+ eid = {arXiv:2505.02928},
81
+ pages = {arXiv:2505.02928},
82
+ doi = {10.48550/arXiv.2505.02928},
83
+ archivePrefix = {arXiv},
84
+ eprint = {2505.02928},
85
+ primaryClass = {astro-ph.IM},
86
+ adsurl = {https://ui.adsabs.harvard.edu/abs/2025arXiv250502928T},
87
+ adsnote = {Provided by the SAO/NASA Astrophysics Data System}
88
+ }
89
+ ```
90
+ Please consider also inviting the developers as co-authors on publications resulting from your use of RAIL by [making an issue](https://github.com/LSSTDESC/rail/issues/new/choose).
91
+ A convenient list of what to cite may be found under [Citing RAIL](https://rail-hub.readthedocs.io/en/latest/source/citing.html) on ReadTheDocs.
92
+ Additionally, several of the codes accessible through the RAIL ecosystem must be cited if used in a publication.
93
+
94
+ ### Citing this package
95
+
96
+ If you use this package, you should also cite the appropriate papers for each
97
+ code used. A list of such codes is included in the
98
+ [Citing RAIL](https://lsstdescrail.readthedocs.io/en/stable/source/citing.html)
99
+ section of the main RAIL Read The Docs page.
100
+
@@ -0,0 +1,46 @@
1
+ # pz-rail-astro-tools
2
+
3
+ [![Template](https://img.shields.io/badge/Template-LINCC%20Frameworks%20Python%20Project%20Template-brightgreen)](https://lincc-ppt.readthedocs.io/en/latest/)
4
+ [![codecov](https://codecov.io/gh/LSSTDESC/pz-rail-astro-tools/branch/main/graph/badge.svg)](https://codecov.io/gh/LSSTDESC/pz-rail-astro-tools)
5
+ [![PyPI](https://img.shields.io/pypi/v/astro_tools?color=blue&logo=pypi&logoColor=white)](https://pypi.org/project/astro_tools/)
6
+
7
+ TODO - add more about your project here.
8
+
9
+ ## RAIL: Redshift Assessment Infrastructure Layers
10
+
11
+ This package is part of the larger ecosystem of Photometric Redshifts
12
+ in [RAIL](https://github.com/LSSTDESC/RAIL).
13
+
14
+ ### Citing RAIL
15
+
16
+ RAIL is open source and may be used according to the terms of its [LICENSE](https://github.com/LSSTDESC/RAIL/blob/main/LICENSE) [(BSD 3-Clause)](https://opensource.org/licenses/BSD-3-Clause).
17
+ If you used RAIL in your study, please cite this repository <https://github.com/LSSTDESC/RAIL>, and RAIL Team et al. (2025) <https://arxiv.org/abs/2505.02928>
18
+ ```
19
+ @ARTICLE{2025arXiv250502928T,
20
+ author = {{The RAIL Team} and {van den Busch}, Jan Luca and {Charles}, Eric and {Cohen-Tanugi}, Johann and {Crafford}, Alice and {Crenshaw}, John Franklin and {Dagoret}, Sylvie and {De-Santiago}, Josue and {De Vicente}, Juan and {Hang}, Qianjun and {Joachimi}, Benjamin and {Joudaki}, Shahab and {Bryce Kalmbach}, J. and {Kannawadi}, Arun and {Liang}, Shuang and {Lynn}, Olivia and {Malz}, Alex I. and {Mandelbaum}, Rachel and {Merz}, Grant and {Moskowitz}, Irene and {Oldag}, Drew and {Ruiz-Zapatero}, Jaime and {Rahman}, Mubdi and {Rau}, Markus M. and {Schmidt}, Samuel J. and {Scora}, Jennifer and {Shirley}, Raphael and {St{\"o}lzner}, Benjamin and {Toribio San Cipriano}, Laura and {Tortorelli}, Luca and {Yan}, Ziang and {Zhang}, Tianqing and {the Dark Energy Science Collaboration}},
21
+ title = "{Redshift Assessment Infrastructure Layers (RAIL): Rubin-era photometric redshift stress-testing and at-scale production}",
22
+ journal = {arXiv e-prints},
23
+ keywords = {Instrumentation and Methods for Astrophysics, Cosmology and Nongalactic Astrophysics, Astrophysics of Galaxies},
24
+ year = 2025,
25
+ month = may,
26
+ eid = {arXiv:2505.02928},
27
+ pages = {arXiv:2505.02928},
28
+ doi = {10.48550/arXiv.2505.02928},
29
+ archivePrefix = {arXiv},
30
+ eprint = {2505.02928},
31
+ primaryClass = {astro-ph.IM},
32
+ adsurl = {https://ui.adsabs.harvard.edu/abs/2025arXiv250502928T},
33
+ adsnote = {Provided by the SAO/NASA Astrophysics Data System}
34
+ }
35
+ ```
36
+ Please consider also inviting the developers as co-authors on publications resulting from your use of RAIL by [making an issue](https://github.com/LSSTDESC/rail/issues/new/choose).
37
+ A convenient list of what to cite may be found under [Citing RAIL](https://rail-hub.readthedocs.io/en/latest/source/citing.html) on ReadTheDocs.
38
+ Additionally, several of the codes accessible through the RAIL ecosystem must be cited if used in a publication.
39
+
40
+ ### Citing this package
41
+
42
+ If you use this package, you should also cite the appropriate papers for each
43
+ code used. A list of such codes is included in the
44
+ [Citing RAIL](https://lsstdescrail.readthedocs.io/en/stable/source/citing.html)
45
+ section of the main RAIL Read The Docs page.
46
+
@@ -0,0 +1,10 @@
1
+ name: rail
2
+ channels:
3
+ - conda-forge
4
+ - defaults
5
+ dependencies:
6
+ - numpy>=1.21.0
7
+ - scipy>=1.9.0
8
+ - h5py>=2.9=*mpi_openmpi*
9
+ - hdf5=*=*mpi_openmpi*
10
+ - mpi4py