Skip to content

TST fix tests for JAX-Galsim#1252

Closed
beckermr wants to merge 363 commits into
mainfrom
fix_tests
Closed

TST fix tests for JAX-Galsim#1252
beckermr wants to merge 363 commits into
mainfrom
fix_tests

Conversation

@beckermr
Copy link
Copy Markdown
Contributor

@beckermr beckermr commented Oct 15, 2023

This PR has two main features:

  1. It has a generalization of the concept of a "galsim backend" with associated functions for the test suite only. In the test suite only, the backend is used to adjust the tests as needed for the jax-based galsim implementation.

  2. It has adjustments of the tests for jax-galsim. Most of them are related to cases where jax cannot raise the same errors (e.g., for checking argument types) or when the fact that jax arrays cannot be changed in place causes the APIs to differ.

@beckermr
Copy link
Copy Markdown
Contributor Author

The commits here need to be rebased onto main I think.

Comment thread tests/galsim_test_helpers.py Outdated
Comment thread tests/galsim_test_helpers.py Outdated
Comment thread tests/galsim_test_helpers.py Outdated
Comment thread setup.py Outdated
@beckermr beckermr marked this pull request as ready for review August 26, 2024 20:54
@beckermr beckermr requested a review from rmjarvis August 26, 2024 20:59
@beckermr
Copy link
Copy Markdown
Contributor Author

ok @rmjarvis This giant PR is ready for review. I can break it up into smaller PRs if that would help. My hope is that with this PR, we can run jax-galsim tests against the main branch going forward.

Comment thread tests/galsim_test_helpers.py
Comment thread tests/galsim_test_helpers.py
Comment thread tests/test_celestial_galsim.py
Comment thread tests/test_celestial_galsim.py
Comment thread tests/test_deprecated.py
Comment thread tests/test_utilities.py
Comment thread tests/test_utilities.py
Comment thread tests/test_utilities.py
Comment thread tests/test_wcs.py
Comment thread tests/test_zernike.py
@beckermr
Copy link
Copy Markdown
Contributor Author

OK @rmjarvis I addressed all of the comments here. Thanks a bunch for the review! It definitely helped improve JAX-GalSim and helped to flush out at least one bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Non-functional changes to make the code better tests Related to the test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants