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

Update script scil_viz_gradients_screenshot #1097

Merged
merged 3 commits into from
Dec 18, 2024

Conversation

karanphil
Copy link
Contributor

@karanphil karanphil commented Dec 12, 2024

Quick description

The reading of .bvals and .bvecs files was outdated in scil_viz_gradients_screenshot.py. I used read_bvals_bvecs instead. Also, I changed the last argument given to assert_gradients_filenames_valid, which was not working at all. (supposed to be a bool but was 'fsl' or 'mrtrix')

...

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

@karanphil karanphil requested a review from arnaudbore December 12, 2024 19:00
Copy link

codecov bot commented Dec 12, 2024

Codecov Report

Attention: Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 69.54%. Comparing base (e256482) to head (92fbb64).
Report is 76 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1097      +/-   ##
==========================================
+ Coverage   69.46%   69.54%   +0.07%     
==========================================
  Files         447      448       +1     
  Lines       24052    24076      +24     
  Branches     3291     3290       -1     
==========================================
+ Hits        16708    16743      +35     
+ Misses       5946     5940       -6     
+ Partials     1398     1393       -5     
Components Coverage Δ
Scripts 70.28% <25.00%> (+0.01%) ⬆️
Library 68.55% <ø> (+0.15%) ⬆️

@karanphil karanphil changed the title Small update of read_bvals_bvecs in scil_viz_gradients [WIP] Update script scil_viz_gradients_screenshot Dec 13, 2024
@karanphil karanphil changed the title [WIP] Update script scil_viz_gradients_screenshot Update script scil_viz_gradients_screenshot Dec 16, 2024
arnaudbore
arnaudbore previously approved these changes Dec 17, 2024
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.

Change points to bvecs otherwise LGTM

@karanphil
Copy link
Contributor Author

Change points to bvecs otherwise LGTM

Done!

@arnaudbore arnaudbore enabled auto-merge December 17, 2024 21:33
Copy link
Contributor

@EmmaRenauld EmmaRenauld left a comment

Choose a reason for hiding this comment

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

Did not test but seems ok!

@@ -88,7 +89,7 @@ def main():

if len(args.in_gradient_scheme) == 2:
assert_gradients_filenames_valid(parser, args.in_gradient_scheme,
'fsl')
True)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please put input_is_fsl=True, instead of only True?

@@ -97,7 +98,7 @@ def main():
else:
assert_gradients_filenames_valid(parser,
args.in_gradient_scheme,
'mrtrix')
False)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same

@arnaudbore arnaudbore added this pull request to the merge queue Dec 18, 2024
Merged via the queue into scilus:master with commit c352faf Dec 18, 2024
2 checks passed
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.

3 participants