Skip to content

Division by 0 in test_multivariate_simulation_2D #386

@jpaillard

Description

@jpaillard

The test computes an estimated signal-to-noise ratio in a scenario where the SNR is set to np.inf, resulting in a division by 0 that sometimes pops up in the tests:

signal_noise_ratio_hat = np.linalg.norm(y - noise) / np.linalg.norm(noise)

See, for instance, https://github.com/mind-inria/hidimstat/actions/runs/17578598386/job/49929539204?pr=355

I'm not sure why this does not happen systematically though 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtestQuestion link to tests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions