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

Keep original dtype for offsets in vtk format #581

Merged
merged 7 commits into from Jun 9, 2022

Conversation

frheault
Copy link
Contributor

@frheault frheault commented Apr 27, 2022

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)

Copy link
Contributor

@skoudoro skoudoro left a 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.

fury/utils.py Outdated Show resolved Hide resolved
Copy link
Contributor

@skoudoro skoudoro left a 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 !

@frheault
Copy link
Contributor Author

frheault commented Jun 8, 2022

@skoudoro can you activate tests on both PR, I think they should run now.
They run locally and I do not see the warnings anymore

@codecov
Copy link

codecov bot commented Jun 8, 2022

Codecov Report

Merging #581 (f739764) into master (6fe15a6) will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
fury/fury/utils.py 91.00% <0.00%> (-0.76%) ⬇️

@skoudoro
Copy link
Contributor

skoudoro commented Jun 9, 2022

Thank you @frheault, merging.

We plan to do a release by the end of this month (June)

@skoudoro skoudoro merged commit 28339a4 into fury-gl:master Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants