dipy / dipy

DIPY is the paragon 3D/4D+ imaging library in Python. Contains generic methods for spatial normalization, signal processing, machine learning, statistical analysis and visualization of medical images. Additionally, it contains specialized methods for computational anatomy including diffusion, perfusion and structural imaging.
https://dipy.org
Other
688 stars 431 forks source link

NF: Applying Decorators in Module (Utils) #3261

Closed deka27 closed 6 days ago

deka27 commented 3 weeks ago

This PR is to apply keyword decorator to functions in Utils module.

This PR is dependent on the main PR, which should be merged first.

Main PR:

codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 96.55172% with 2 lines in your changes missing coverage. Please review.

Project coverage is 83.70%. Comparing base (19ae6a6) to head (a8f37b7). Report is 91 commits behind head on master.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/dipy/dipy/pull/3261/graphs/tree.svg?width=650&height=150&src=pr&token=T6X4M9BSJd&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dipy)](https://app.codecov.io/gh/dipy/dipy/pull/3261?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dipy) ```diff @@ Coverage Diff @@ ## master #3261 +/- ## ========================================== + Coverage 83.67% 83.70% +0.03% ========================================== Files 153 152 -1 Lines 21381 21423 +42 Branches 3458 3465 +7 ========================================== + Hits 17890 17932 +42 + Misses 2629 2628 -1 - Partials 862 863 +1 ``` | [Files](https://app.codecov.io/gh/dipy/dipy/pull/3261?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dipy) | Coverage Δ | | |---|---|---| | [dipy/stats/analysis.py](https://app.codecov.io/gh/dipy/dipy/pull/3261?src=pr&el=tree&filepath=dipy%2Fstats%2Fanalysis.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dipy#diff-ZGlweS9zdGF0cy9hbmFseXNpcy5weQ==) | `92.30% <100.00%> (+0.30%)` | :arrow_up: | | [dipy/stats/qc.py](https://app.codecov.io/gh/dipy/dipy/pull/3261?src=pr&el=tree&filepath=dipy%2Fstats%2Fqc.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dipy#diff-ZGlweS9zdGF0cy9xYy5weQ==) | `100.00% <100.00%> (ø)` | | | [dipy/stats/resampling.py](https://app.codecov.io/gh/dipy/dipy/pull/3261?src=pr&el=tree&filepath=dipy%2Fstats%2Fresampling.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dipy#diff-ZGlweS9zdGF0cy9yZXNhbXBsaW5nLnB5) | `97.36% <100.00%> (ø)` | | | [dipy/utils/arrfuncs.py](https://app.codecov.io/gh/dipy/dipy/pull/3261?src=pr&el=tree&filepath=dipy%2Futils%2Farrfuncs.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dipy#diff-ZGlweS91dGlscy9hcnJmdW5jcy5weQ==) | `100.00% <100.00%> (ø)` | | | [dipy/utils/deprecator.py](https://app.codecov.io/gh/dipy/dipy/pull/3261?src=pr&el=tree&filepath=dipy%2Futils%2Fdeprecator.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dipy#diff-ZGlweS91dGlscy9kZXByZWNhdG9yLnB5) | `94.44% <100.00%> (+0.19%)` | :arrow_up: | | [dipy/utils/parallel.py](https://app.codecov.io/gh/dipy/dipy/pull/3261?src=pr&el=tree&filepath=dipy%2Futils%2Fparallel.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dipy#diff-ZGlweS91dGlscy9wYXJhbGxlbC5weQ==) | `46.15% <100.00%> (+2.15%)` | :arrow_up: | | [dipy/utils/volume.py](https://app.codecov.io/gh/dipy/dipy/pull/3261?src=pr&el=tree&filepath=dipy%2Futils%2Fvolume.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dipy#diff-ZGlweS91dGlscy92b2x1bWUucHk=) | `100.00% <100.00%> (ø)` | | | [dipy/testing/decorators.py](https://app.codecov.io/gh/dipy/dipy/pull/3261?src=pr&el=tree&filepath=dipy%2Ftesting%2Fdecorators.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dipy#diff-ZGlweS90ZXN0aW5nL2RlY29yYXRvcnMucHk=) | `84.14% <94.11%> (+6.59%)` | :arrow_up: | ... and [14 files with indirect coverage changes](https://app.codecov.io/gh/dipy/dipy/pull/3261/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dipy)