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
Keep original dtype for offsets in vtk format #581
Conversation
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.
Hi @frheault,
Thank you for this. All tests are failing after your change. Can you look at it and add a test? thanks in advance.
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.
Hi @frheault,
With this change, We encounter many times and at different places the following error:
2022-05-25 16:41:51.973 ( 1.931s) [ 69E6D740] vtkCellArray.cxx:908 ERR| vtkCellArray (0x5566eb83e3c0): Invalid array types passed to SetData: offsets=vtkUnsignedLongLongArray, connectivity=vtkUnsignedLongLongArray
Can you look at it and run the tests locally.
Thanks !
@skoudoro can you activate tests on both PR, I think they should run now. |
Codecov Report
@@ Coverage Diff @@
## master #581 +/- ##
==========================================
- Coverage 87.94% 87.91% -0.03%
==========================================
Files 62 62
Lines 13099 13104 +5
Branches 1316 1318 +2
==========================================
+ Hits 11520 11521 +1
- Misses 1202 1205 +3
- Partials 377 378 +1
|
Thank you @frheault, merging. We plan to do a release by the end of this month (June) |
Allows saving VTK using offsets as int32 or int64 by keeping the initial datatype rather than casting it to int64.
Since the ArraySequence as offsets as int64 for default, this does not change the current behavior of the stateful_tractogram in DiPy.
@arokem (this PR match the one I made today in Dipy, to solve limitation with VTK for Chris' Benchmarking)