Skip to content

raise exception if a prior is used on the wrong axis

94c0d22
Select commit
Loading
Failed to load commit list.
Merged

rework the priors API #156

raise exception if a prior is used on the wrong axis
94c0d22
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Dec 10, 2025 in 0s

89.52% (target 80.00%)

View this Pull Request on Codecov

89.52% (target 80.00%)

Details

Codecov Report

❌ Patch coverage is 93.96552% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.52%. Comparing base (5696e2d) to head (94c0d22).

Files with missing lines Patch % Lines
src/mofaflex/_core/api/priors.py 90.00% 5 Missing ⚠️
src/mofaflex/_core/priors/base.py 91.66% 1 Missing ⚠️
.../_core/priors/gaussian_process/gaussian_process.py 95.45% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #156      +/-   ##
==========================================
- Coverage   89.59%   89.52%   -0.08%     
==========================================
  Files          52       53       +1     
  Lines        4855     4877      +22     
==========================================
+ Hits         4350     4366      +16     
- Misses        505      511       +6     
Files with missing lines Coverage Δ
src/mofaflex/__init__.py 100.00% <100.00%> (ø)
src/mofaflex/_core/__init__.py 100.00% <100.00%> (ø)
src/mofaflex/_core/api/__init__.py 100.00% <100.00%> (ø)
src/mofaflex/_core/mofaflex.py 93.56% <100.00%> (-0.06%) ⬇️
src/mofaflex/_core/priors/__init__.py 100.00% <100.00%> (ø)
...mofaflex/_core/priors/gaussian_process/__init__.py 100.00% <100.00%> (ø)
src/mofaflex/_core/priors/horseshoe.py 90.90% <100.00%> (ø)
src/mofaflex/_core/priors/spike_slab.py 83.33% <ø> (ø)
src/mofaflex/_core/priors/base.py 97.04% <91.66%> (-0.57%) ⬇️
.../_core/priors/gaussian_process/gaussian_process.py 90.07% <95.45%> (-0.67%) ⬇️
... and 1 more

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.