Skip to content

Conversation

@jhlegarreta
Copy link

@jhlegarreta jhlegarreta commented Nov 1, 2025

Add transform analysis utils.

Transfer contents from the NiFreeze projects so that hey can be reused across projects requiring transform analysis:
https://github.com/nipreps/nifreeze/blob/d27ba7552bbd9095c3c13b46443d87a4b5504c4c/src/nifreeze/analysis/motion.py https://github.com/nipreps/nifreeze/blob/d27ba7552bbd9095c3c13b46443d87a4b5504c4c/src/nifreeze/data/utils.py

Add a fixture to be able to reuse a random number generator across tests.

Fixes #239.

@jhlegarreta
Copy link
Author

I did not dare to create a data module the utils.py module at the root folder, as I do not know well the philosophy in this project, but let me know if it does belong to a data module.

I think the plotting should go to nireports.

@jhlegarreta jhlegarreta force-pushed the enh/add-transform-analysis-utils branch 2 times, most recently from 9139ff3 to 7fae796 Compare November 1, 2025 18:10
Add transform analysis utils.

Transfer contents from the `NiFreeze` projects so that hey can be reused
across projects requiring transform analysis:
https://github.com/nipreps/nifreeze/blob/d27ba7552bbd9095c3c13b46443d87a4b5504c4c/src/nifreeze/analysis/motion.py
https://github.com/nipreps/nifreeze/blob/d27ba7552bbd9095c3c13b46443d87a4b5504c4c/src/nifreeze/data/utils.py

Add a fixture to be able to reuse a random number generator across
tests.
@jhlegarreta jhlegarreta force-pushed the enh/add-transform-analysis-utils branch from 7fae796 to 73b27ba Compare November 1, 2025 18:19
@codecov
Copy link

codecov bot commented Nov 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.81%. Comparing base (0c2ad9f) to head (73b27ba).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #286      +/-   ##
==========================================
+ Coverage   96.74%   96.81%   +0.07%     
==========================================
  Files          16       18       +2     
  Lines        1994     2044      +50     
  Branches      267      225      -42     
==========================================
+ Hits         1929     1979      +50     
  Misses         41       41              
  Partials       24       24              
Flag Coverage Δ
unittests 96.81% <100.00%> (+0.09%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 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.

Framewise displacement calculations, CLI, and perhaps, plotting module

1 participant