-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: Catch warning when loaded text file contains no data in test #156
Conversation
47d7ff0
to
868d7ae
Compare
868d7ae
to
4c7735b
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #156 +/- ##
==========================================
- Coverage 65.25% 64.43% -0.83%
==========================================
Files 25 25
Lines 2674 2674
Branches 420 367 -53
==========================================
- Hits 1745 1723 -22
- Misses 814 838 +24
+ Partials 115 113 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Resolved conflicts, push-forced, codecov is happy now. Ready to be merged. |
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
4c7735b
to
30b5a91
Compare
Sorry, didn't realize this would fail on min. Feel free to revert and merge. |
b34a89b
to
30b5a91
Compare
Catch warning when loaded text file contains no data in test.
Fixes:
raised for example in:
https://github.com/nipreps/nireports/actions/runs/12681153218/job/35344304375#step:12:347