Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Volumes scripts #947

Merged
merged 14 commits into from
Apr 9, 2024
Merged

Volumes scripts #947

merged 14 commits into from
Apr 9, 2024

Conversation

EmmaRenauld
Copy link
Contributor

Quick description

Cleaning the scripts in the volume column.

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
  • 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
  • New and existing unit tests pass locally with my changes

@pep8speaks
Copy link

pep8speaks commented Mar 14, 2024

Hello @EmmaRenauld, Thank you for updating !

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2024-04-03 12:52:56 UTC

@EmmaRenauld
Copy link
Contributor Author

@frheault Could you please help us have a better doc of the scil_volume_b0_synthesis? Why does it take as input a b0 to create a b0? Thanks!!

@EmmaRenauld EmmaRenauld changed the title [WIP] Volumes scripts Volumes scripts Mar 14, 2024
Copy link

codecov bot commented Mar 14, 2024

Codecov Report

Attention: Patch coverage is 58.95522% with 55 lines in your changes are missing coverage. Please review.

Project coverage is 67.65%. Comparing base (377bed3) to head (ef3859a).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #947      +/-   ##
==========================================
+ Coverage   66.98%   67.65%   +0.66%     
==========================================
  Files         396      397       +1     
  Lines       21411    21418       +7     
  Branches     3253     3249       -4     
==========================================
+ Hits        14343    14490     +147     
+ Misses       5752     5605     -147     
- Partials     1316     1323       +7     
Components Coverage Δ
Scripts 68.68% <53.62%> (+0.61%) ⬆️
Library 66.07% <64.61%> (+0.76%) ⬆️

@EmmaRenauld EmmaRenauld force-pushed the volumes_scripts branch 2 times, most recently from 32fb80d to f6d4e61 Compare March 21, 2024 12:35
Copy link
Contributor

@arnaudbore arnaudbore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GTG but one quick comment

in_b0, 'b0_mask.nii.gz',
'b0_synthesized.nii.gz', '-v')
assert ret.success
if have_tensorflow:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I liked François' way better... what made you change it ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It didn't work. If you didn't have tensorflow, the whole file was skipped, even the help test above, not this method only. You can see in the code coverage that the script had 0% coverage, so not even the help: https://app.codecov.io/gh/scilus/scilpy/blob/master/scripts%2Fscil_volume_b0_synthesis.py

We checked with Alex, this is the solution we found.

@EmmaRenauld EmmaRenauld requested a review from karanphil March 27, 2024 15:18
Copy link
Contributor

@karanphil karanphil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Just two minor comments before merging.

scripts/scil_volume_stats_in_ROI.py Outdated Show resolved Hide resolved
scripts/scil_volume_stats_in_ROI.py Outdated Show resolved Hide resolved
@arnaudbore arnaudbore merged commit 67ee219 into scilus:master Apr 9, 2024
2 checks passed
@EmmaRenauld EmmaRenauld deleted the volumes_scripts branch April 9, 2024 19:26
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.

4 participants