Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Catch warning when loaded text file contains no data in test
Catch warning when loaded text file contains no data in test. Fixes: ``` nireports/tests/test_reportlets.py::test_plot_melodic_components /home/runner/work/nireports/nireports/nireports/reportlets/xca.py:128: UserWarning: loadtxt: input contained no data: "/tmp/pytest-of-runner/pytest-0/popen-gw0/test_plot_melodic_components0/noise_none.csv" noise_components = np.loadtxt(noise_components_file, dtype=int, delimiter=",", ndmin=1) ``` raised for example in: https://github.com/nipreps/nireports/actions/runs/12681153218/job/35344304375#step:12:347
- Loading branch information