-
Notifications
You must be signed in to change notification settings - Fork 261
incorrect datatype in GIFTI output (INT64 instead of INT32) #792
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
Comments
Hi @hyperbolicTom. Thanks for the report. Would you be interested in submitting a PR? It would be nice to start out with some tests that attempt to create some Once the tests are in place, and the failures are where we expect, then we can apply a fix. I think (but it's better to use tests to verify this) that probably the better way to make this fix is to adjust the nibabel/nibabel/gifti/gifti.py Lines 273 to 293 in 10ad38a
|
Closed in #806. |
Having an issue with NODE_INDEX. To reproduce:
What I get here, on a 64-bit machine:
The problem is that internally, the node index is stored as an int64 array, and although the output is specified as being INT32, it isn't converted before .tostring() is called.
Here's a fix:
Perhaps the bug is that self.data is int64 already, but I'm not sure about that.
Anyway with this change the output is the same as with ASCII encoding.
The text was updated successfully, but these errors were encountered: