• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wwu-mmll / confound_corrected_cpm / 35608509104
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: main
Ran 21 Sep 2026 02:02PM UTC
Jobs 1
Files 37
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Sep 2026 01:34PM UTC coverage: 87.041% (+0.5%) from 86.57%
35608509104

push

github

NilsWinter
Split PermutationManager into inference.py and the edge statistics into statistics.py

Two files each held two unrelated things.

results_manager.py (737 lines) mixed an accumulator with ~360 lines of
permutation statistics. PermutationManager moves to inference.py -- NBS, TFCE
and the permutation p-values, the most statistically delicate code in the
package, now findable under a name that says what it is. ResultsManager keeps
nothing more exotic than means and argmax. 737 -> 381 + 388.

edge_selection.py (595 lines) mixed the maths with the policy built on it.
torch_rankdata, get_residuals, torch_bonferroni and correlations_and_pvalues
move to statistics.py; the selectors, the presence and connected-component
filters, and the UnivariateEdgeSelection facade stay. 595 -> 385 + 234.

Tests follow the code: tests/test_inference.py and tests/test_statistics.py,
carved out of test_results_manager.py and test_edge_selection.py. The same
tests, none dropped, plus two dead _uneven_splits helpers removed.

One bug found and fixed in the process: inference.py calls
ResultsManager.load_cv_results, which was a module global in the old file and
became an unimported name in the new one. The whole unit suite passed --
only test_integration.py caught it, via the example scripts. So
calculate_permutation_results, the top-level entry point of this module, now
has a direct test that builds a minimal results directory on disk and runs both
methods in ~1s. Verified that it fails with the import removed.

Suite 317 -> 326.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

220 of 222 new or added lines in 5 files covered. (99.1%)

32 existing lines in 2 files now uncovered.

2418 of 2778 relevant lines covered (87.04%)

0.87 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
97.01
src/cccpm/statistics.py

Coverage Regressions

Lines Coverage ∆ File
25
0.0
0.0% src/cccpm/reporting/plots/cpm_chord_plot.py
7
95.67
0.08% src/cccpm/cpm_analysis.py
Jobs
ID Job ID Ran Files Coverage
1 35608509104.1 21 Sep 2026 02:02PM UTC 37
87.04
GitHub Action Run
Source Files on build 35608509104
  • Tree
  • List 37
  • Changed 6
  • Source Changed 6
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35608509104
  • c0cde5b6 on github
  • Prev Build on develop (#35154792679)
  • Next Build on develop (#35611611867)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc