Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
cd64298
Refactor create_simulated_catalog.py to account for parquet format.
mairanteodoro May 22, 2025
b5be827
Implement integration test and other updates.
mairanteodoro Jun 2, 2025
ccedb9a
Style check fixes.
mairanteodoro Jun 2, 2025
15f25e8
More style fixes.
mairanteodoro Jun 2, 2025
21a3e2c
Add regtest files
mairanteodoro Jun 2, 2025
34cc863
Ignore fail-under threshold.
mairanteodoro Jun 2, 2025
b222d25
Ignore fail-under in GA workflow.
mairanteodoro Jun 2, 2025
eb0df44
Update files
mairanteodoro Jun 2, 2025
6ae4e86
Refactoring and improvements.
mairanteodoro Jun 30, 2025
baa0e09
Mock catalog data to avoid using real file.
mairanteodoro Jun 30, 2025
e7cced1
Merge branch 'main' into RCAL-1074
mairanteodoro Jun 30, 2025
bf2df44
Add scripts folder.
mairanteodoro Jun 30, 2025
7e83c2f
Bug fix when saving results.
mairanteodoro Jun 30, 2025
1387e51
Update tests configuration to use romancal's.
mairanteodoro Jul 1, 2025
d8250bf
Remove scripts folder.
mairanteodoro Jul 1, 2025
32ff6e7
Added romancal to pyproject.toml
mairanteodoro Jul 1, 2025
31d3578
Use released version of romancal + RDM.
mairanteodoro Jul 1, 2025
f5f7147
Fix duplicate registered name issue.
mairanteodoro Jul 1, 2025
fdd672a
Code refactoring to normalize filters name list.
mairanteodoro Jul 1, 2025
3b5759f
Set default parameters for roman_photoz.
mairanteodoro Jul 1, 2025
5a701f4
Fix filter name list used in unit test.
mairanteodoro Jul 2, 2025
0febdd9
Updated project dependencies.
mairanteodoro Jul 2, 2025
f9410e8
Fix issue when installing dependencies.
mairanteodoro Jul 2, 2025
b3865ed
Bug fix.
mairanteodoro Jul 2, 2025
6d84a88
Fix typo.
mairanteodoro Jul 2, 2025
2c2545b
Remove unnecessary data files.
mairanteodoro Jul 2, 2025
61e0211
Revert removal of sample catalog file.
mairanteodoro Jul 2, 2025
9833fca
Set default column name to segment_flux.
mairanteodoro Jul 3, 2025
c889853
Add reference to romancal's regtest documentation.
mairanteodoro Jul 3, 2025
a34c7fc
Update documentation and configuration.
mairanteodoro Jul 7, 2025
b962b64
Add missing extension to docs configuration file.
mairanteodoro Jul 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/run-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install ".[dev]"
pip install .[dev]

- name: Run unit tests with coverage
run: |
coverage run -m pytest
coverage report --fail-under=70
coverage report
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"sphinxarg.ext", # For automatic documentation of argparse arguments
"myst_parser", # For Markdown support
]

templates_path = ["_templates"]
Expand Down
2 changes: 2 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ redshifts using rail/LePhare. Key features include:

installation
usage
regtest_framework

.. toctree::
:maxdepth: 2
Expand All @@ -34,6 +35,7 @@ redshifts using rail/LePhare. Key features include:
roman_catalog_handler
create_simulated_catalog


API Reference
-------------

Expand Down
2 changes: 2 additions & 0 deletions docs/regtest_framework.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.. include:: ../roman_photoz/regtest/README.md
:parser: myst_parser.sphinx_
2 changes: 1 addition & 1 deletion docs/roman_catalog_handler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The following example demonstrates how to use the `RomanCatalogHandler` class to
reg_test_data = Path(test_bigdata)

# Specify the catalog file
test_cat = reg_test_data / "r0000101001001001001_0001_wfi01_cat.asdf"
test_cat = reg_test_data / "r0000101001001001001_0001_wfi01_cat.parquet"

# Create an instance of RomanCatalogHandler
catalog_handler = RomanCatalogHandler(test_cat.as_posix())
Expand Down
20 changes: 12 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "roman_photoz"
description = "Library for photometric redshift determination using data from the Nancy Grace Roman Space Telescope"
readme = "README.md"
requires-python = ">=3.10"
requires-python = ">=3.11"
authors = [
{ name = "Roman calibration pipeline developers", email = "help@stsci.edu" },
]
Expand All @@ -22,22 +22,20 @@ dependencies = [
"photutils >=1.13.0",
"pyparsing >=2.4.7",
"requests >=2.26",
"roman_datamodels>=0.22.0",
# "roman_datamodels @ git+https://github.com/spacetelescope/roman_datamodels.git",
"roman_datamodels @ git+https://github.com/spacetelescope/roman_datamodels.git",
"scipy>=1.7.0",
"stcal>=1.10.0",
# "stcal @ git+https://github.com/spacetelescope/stcal.git@main",
"stpipe >=0.7.0",
# "stpipe @ git+https://github.com/spacetelescope/stpipe.git@main",
"tweakwcs >=0.8.8",
"spherical-geometry >= 1.2.22",
"stsci.imagestats >= 1.6.3",
"drizzle >= 1.15.0",
"webbpsf >= 1.2.1",
# "pz-rail-lephare",
"pz-rail-lephare @ git+https://git@github.com/mairanteodoro/rail_lephare.git",
"lephare == 0.1.13",
"pz-rail-base == 1.1.5",
"tox>=4.26.0",
"pip>=25.1.1",
]
license-files = ["LICENSE"]
dynamic = ["version"]
Expand All @@ -53,6 +51,7 @@ docs = [
"sphinx-autobuild",
"tomli; python_version <=\"3.11\"",
"sphinx-argparse",
"myst_parser", # For Markdown support
]
test = [
"ci-watson >=0.5.0",
Expand All @@ -61,13 +60,14 @@ test = [
"deepdiff",
"stpreview>=0.5.1",
"pytest-cov",
"romancal @ git+https://github.com/spacetelescope/romancal.git",
"jdaviz>=4.2.3",
]
dev = ["roman_photoz[docs,test]", "tox > 4", "pre-commit > 3"]
sdp = ["stpreview>=0.5.1"]

[project.urls]
tracker = "https://github.com/spacetelescope/roman_photoz/issues"
# documentation = "https://roman-pipeline.readthedocs.io/en/stable/"
repository = "https://github.com/spacetelescope/roman_photoz"

[build-system]
Expand Down Expand Up @@ -139,10 +139,14 @@ omit = ["*/tests/*", "*/docs/*"]
show_missing = true
skip_covered = true
precision = 2
fail_under = 70
# fail_under = 70

[tool.coverage.html]
directory = "htmlcov"

[tool.coverage.xml]
output = "coverage.xml"

[project.scripts]
roman-photoz = "roman_photoz.__main__:main"
roman-photoz-create-simulated-catalog = "roman_photoz.create_simulated_catalog:main"
Loading