Closed Hboni closed 3 years ago
That's true: first this process needs to be updated (we changed the internal representation using Volume
instead of the old AimsData classes, and there were missing conversion functions from generic objects in the Volume
classes. I'm fixing that.
Thanks, it works well now :tada:
I tried to use the graphToVolume.py process in the
Tools
toolbox in brainvisa.In my development environment, which is not fully up-to-date, I do not have any problem. In my tests, I convert aGraph and data
file, which corresponds to a .arg file with only one volume, into a nifti file.I compiled a new casa-distro from scratch, and when I use the same process with the same values I get an error :
I looked at the corresponding lines and tried to understand why it no longer works: https://github.com/brainvisa/axon/blob/47642d524ef59aa58ec203b3e6974593f45c0c99/brainvisa/toolboxes/tools/processes/converters/graphToVolume.py#L96-L105
It appears that the
bucket2Volume()
method complete the graph object with aaims.rc_ptr_AimsData_S16
in my "old" version, but with aaims.carto.Object
in my up-to-date version.I was wondering if it is possible to have the same type as before, or if the two types are equivalents?
P.S: after some local modification to try to select the good key with
aims.carto.Object
, and I have another issueAttributeError: 'GenericObject' object has no attribute 'dimX'