Skip to content

R-hat finiteness filter passes ±Inf despite message claiming NaN/Inf handling #326

@rozyczko

Description

@rozyczko

Source: EasyReflectometryApp/Backends/Py/analysis.py:710 — DEEP_ANALYSIS.md §5 item 15 (and §3.2)

The R-hat finiteness filter uses value == value, which only removes NaN±Inf values pass through, even though the adjacent user-facing message claims NaN/Inf are handled.

Fix: Use np.isfinite(value) so both NaN and ±Inf are filtered.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions