Reject non-finite inputs in hypertoroidal angular_error - #5459
Reject non-finite inputs in hypertoroidal angular_error#5459FlorianPfaff wants to merge 2 commits into
Conversation
✅MegaLinter analysis: Success
Notices
See detailed reports in MegaLinter artifacts Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining
|
|
Superseded by #5462. #5462 contains the same |

Problem
AbstractHypertoroidalDistribution.angular_errorrejectedNaNinputs but not+infor-inf. Periodic reduction of infinite angles produces a non-finite result, so invalid input could silently propagate as an invalid angular error.Fix
isfiniteAPINaN,+inf, and-infconsistently before modulo reductionalphaandbetaTesting
The regression test is backend-neutral. The repository CI matrix will exercise it under the configured NumPy, JAX, and PyTorch jobs.