-
Notifications
You must be signed in to change notification settings - Fork 429
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
Change internal space/origin when using sft.to_x() with an empty sft. #2864
Conversation
This makes sense to me! Any chance to get a test of this functionality? |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #2864 +/- ##
=======================================
Coverage 81.48% 81.48%
=======================================
Files 144 144
Lines 20055 20054 -1
Branches 3192 3192
=======================================
Hits 16341 16341
Misses 2906 2906
+ Partials 808 807 -1
|
Good catch ! This was indeed an oversight ! |
What type of test would you like? Here is an example of previous problematic usage:
I could add these lines somewhere, they should now be compatible. Where should I add it? Can you help me understand why the Github tests were not successful? |
You can ignore, this is not due to your PR. it seems there is an incompatibility between |
You can add a new test in https://github.com/dipy/dipy/blob/master/dipy/io/tests/test_stateful_tractogram.py Thanks ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the update @EmmaRenauld.
Looks good to me. I will wait until Monday to merge it in case there are any additional comments.
When using an empty SFT, internal space (sft._space) is never modified. Changing this ensures that we can compare the compatibility of many SFT, even when some are empty.
Same with origin.