wtclarke / pymapvbvd

Python port of mapVBVD
MIT License
44 stars 25 forks source link

Loading a large (> 5 GB) .dat file is reducing the number of lines in the Twix object #45

Open aolbrech opened 9 months ago

aolbrech commented 9 months ago

Running into an issue that when I load a large .dat file the number of lines twix_obj.image.NLin is different from the number of acquisitions twix_obj.image.NAcq. This is not the case when I load a smaller dataset, and also not what I expect from loading the same .dat file in Matlab and get the twix object there.

Because of this issue I am unable to convert the Matlab code I have to Python since I lose part of my data in my Python code. I tried looking into the different flags, but couldn't find the one that could be responsible for this. If this would be a simple flag, please let me know which I should set.

image

wtclarke commented 9 months ago

I've seen this once before I think. It's probably because a loop value is set to a negative value. If you can investigate int he debugger, then you/we can figure out a fix.