Skip to content

Unit testing - #32

Merged
JaimeRZP merged 1 commit into
mainfrom
unit_testing
Nov 6, 2026
Merged

JaimeRZP merged 1 commit into
mainfrom
unit_testing

Conversation

@JaimeRZP

@JaimeRZP JaimeRZP commented Nov 6, 2026

Copy link
Copy Markdown
Owner

No description provided.

- tests/test_qp_output.py: Student-t p(z)s against exact integrals, rejection
  samples and KS tests; qp CDF/ppf/rvs, HDF5 round trip, edge cases, no-qp
  fallback. One strict xfail records the float32 CDF overshoot below the
  1e-3 scale floor.
- tests/test_data.py: box filters aligned with the wavelength bins, so the
  discretised SED and coverage are checked against hand-written values;
  feature matrix shape.
- tests/test_models.py: network dimensions, ToRedshift, Student-t NLL, save/load.
- tests/test_io.py: catalogue readers, filter curves, catalog_to_mags.
- .github/workflows/tests.yml + "test" extra in pyproject.toml; Tests badge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JaimeRZP
JaimeRZP merged commit 53a32bf into main Nov 6, 2026
1 check passed
@JaimeRZP
JaimeRZP deleted the unit_testing branch November 6, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant