Skip to content

New script: stats for whole volume - #1367

Open
EmmaRenauld wants to merge 1 commit into
scilus:masterfrom
EmmaRenauld:add_stats_util
Open

EmmaRenauld wants to merge 1 commit into
scilus:masterfrom
EmmaRenauld:add_stats_util

Conversation

@EmmaRenauld

Copy link
Copy Markdown
Contributor

Quick description

New small script to print statistics on a volume (maximum, mininimum, mean, etc.). We already had scil_volume_stats_in_ROI.py, or _stats_in_labels.py but this one is simpler. Useful to get a quick idea of your data.

Example of use: with ANT's Bias Field Correction, images must be in a pre-defined range. This allows investigating your raw data.

Type of change

Check the relevant options.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Provide data, screenshots, command line to test (if relevant)

...

Checklist

  • My code follows the style guidelines of this project (run autopep8)
  • I added relevant citations to scripts, modules and functions docstrings and descriptions
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • [x ] I moved all functions from the script file (except the argparser and main) to scilpy modules
  • I have added tests that prove my fix is effective or that my feature works
  • [x ] New and existing unit tests pass locally with my changes

@codecov

codecov Bot commented Oct 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.61%. Comparing base (31cf4e5) to head (db56114).
⚠️ Report is 20 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1367      +/-   ##
==========================================
+ Coverage   72.59%   72.61%   +0.02%     
==========================================
  Files         301      302       +1     
  Lines       26283    26313      +30     
  Branches     3700     3702       +2     
==========================================
+ Hits        19080    19108      +28     
- Misses       5651     5653       +2     
  Partials     1552     1552              
Flag Coverage Δ
smoketests 69.78% <100.00%> (+0.03%) ⬆️
unittests 14.20% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Scripts 75.33% <100.00%> (+0.01%) ⬆️
Library 69.34% <ø> (+0.01%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant