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

[WIP] Fix script fix_trk #984

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

EmmaRenauld
Copy link
Contributor

[WIP]

Todo. @arnaudbore , you told me you were managing this. Adding my attempt at changes here so that they are not lost. See my comment "hein???" in the main.

@pep8speaks
Copy link

Hello @EmmaRenauld, Thank you for submitting the Pull Request !

Line 160:80: E501 line too long (96 > 79 characters)
Line 185:80: E501 line too long (96 > 79 characters)

Copy link

codecov bot commented Apr 23, 2024

Codecov Report

Attention: Patch coverage is 64.51613% with 11 lines in your changes missing coverage. Please review.

Project coverage is 68.22%. Comparing base (deb254a) to head (d797fcd).
Report is 92 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #984      +/-   ##
==========================================
+ Coverage   68.00%   68.22%   +0.21%     
==========================================
  Files         419      419              
  Lines       21569    21574       +5     
  Branches     3242     3244       +2     
==========================================
+ Hits        14668    14718      +50     
+ Misses       5609     5552      -57     
- Partials     1292     1304      +12     
Components Coverage Δ
Scripts 69.29% <64.51%> (+0.32%) ⬆️
Library 66.59% <ø> (+0.04%) ⬆️

@arnaudbore arnaudbore added the WIP Work In Progress label Jun 18, 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.

@frheault can you double check this one please :)


else:
sft.to_vox()
sft.streamlines._data -= get_axis_flip_vector(flip_axis) # --------------------_> HEin?
Copy link
Contributor

Choose a reason for hiding this comment

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

@frheault can you help with this one please ?

Copy link
Contributor

Choose a reason for hiding this comment

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

  • L185

Copy link
Member

Choose a reason for hiding this comment

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

I dont have data from StarTrack, but since there is a flip in X for everything we cannot use 'to_corner()' or 'to_center()' since it would shift it in the opposite direction. I believe this was the equivalent of centering the streamlines to the voxel before flipping.

DSI is flip in X/Y (LPS instead of RAS), so the shift is made to center streamlines to the voxel before the flip.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When we talked about it a few months ago, I think we decided there are an error in the script. Arnaud, you said you would make some tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP Work In Progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants