Skip to content

Test Updates: Deltas and Whitespace#126

Merged
asher-m merged 6 commits into
masterfrom
dev/tests
Jul 2, 2026
Merged

Test Updates: Deltas and Whitespace#126
asher-m merged 6 commits into
masterfrom
dev/tests

Conversation

@asher-m

@asher-m asher-m commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

This PR may require merging #125 before this can be merged, or dropping/reworking commits from this work.

This PR includes:

  • Changes to deltas where they serve as absolute tolerances in tests with randomly initialized parameters.
  • Whitespace and formatting changes.

This PR also enables a commented-out deterministic test that runs successfully (tests/test_ttr.py::TTRTestCase::test_orthogonality_half_line, defined here). It may be worth reviewing this test to ensure we want it in the codebase, but it seems reasonable to me.

asher-m added 4 commits July 2, 2026 11:28
* use scalar to scalar cast instead of ndim > 0 to scalar cast
  * ndim > 0 to scalar was slated for deprecation in numpy 1.25 and became deprecated in numpy 2.4
* rename np.Inf to np.inf
  * np.Inf served as an alias for np.inf in numpy < 2
  * alias was removed in numpy 2
* likely due to convergence issues
* want to be more explicit/careful about why these tests fail and amend in future work
@asher-m

asher-m commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator Author

If we merge this, we should open a bug flagging the loose tolerances on tests introduced by using large deltas.

@akilnarayan akilnarayan self-requested a review July 2, 2026 20:09
akilnarayan
akilnarayan previously approved these changes Jul 2, 2026
@asher-m asher-m merged commit e08dfb7 into master Jul 2, 2026
6 of 14 checks passed
@asher-m asher-m deleted the dev/tests branch July 2, 2026 20:34
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.

2 participants