Closed carlohamalainen closed 10 years ago
Hi Carlo,
Currently pyminc is geared towards Vladimir's development branch from libminc, because that is the one that is installed when you use the minc-tookit repository (https://github.com/BIC-MNI/minc-toolkit). There the function definition for miget_dimension_sizes has changed:
and uses unsigned long long. There are a number of other functions that will have the same discrepancy with the master branch. Potentially this repository could have a master and develop branch that mimic the changes in limbic.
Cheers, Matthijs
Hi Matthijs,
Thanks for clarifying. For the moment I'll switch to the BIC-MNI/minc-toolkit repository so you can close this pull request.
Cheers,
-- Carlo
I've updated the README of the repository to indicate that pyminc is currently tailored to libminc's development branch. Closing this issue.
The full definition from MINC-2.2.00 is:
The definition in libpyminc2.py has int_sizes (C's unsigned long long) for the last parameter, but it should be uint_sizes.
Test script:
Result:
After the fix:
I tested scripts/pyminc_test2.py and it seemed to run successfully:
Note: all testing was done on Debian Wheezy 64bit; I got segfaults on Debian Wheezy 32bit with the latest commit and also my patches. Is pyminc compatible with 32bit systems?