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

"WARN: Wrong number of samples" #15

Open
mscipio opened this issue Feb 14, 2022 · 2 comments
Open

"WARN: Wrong number of samples" #15

mscipio opened this issue Feb 14, 2022 · 2 comments

Comments

@mscipio
Copy link
Contributor

mscipio commented Feb 14, 2022

Hi,
I am trying to use this library to decode Siemens TWIX files, but I get the following errors on two different files

twixread( "./meas_MID00734_FID13838_fl3d_spiral_vibe_1_5mmiso_6echo.dat", "./rawdatarinator/test" )
VD Header. MeasID: 734 FileID: 13838 Scans: 2
Patient: xxxxxxxxxxxxxxxxxxxxxxx
Protocol: fl3d_spiral_vibe_1.5mmiso_6echo
WARN: Wrong number of samples: 1 != 3.
WARN: Stopping.
Out[7]: 0
 twixread("./meas_MID00103_FID57244_test.dat", "./meas_MID00103_FID57244_test" )
VB Header.
WARN: Wrong number of samples: 1 != 512.
WARN: Stopping.
Out[9]: 0

Any help would be greatly appreciated!

@mckib2
Copy link
Owner

mckib2 commented Feb 15, 2022

Hi @mscipio , I see the first data set is a spiral sequence. I recall that BART's twixread function (which is being used under the hood) has trouble with radial and spiral sequences, but it's been a little while since I've pulled in updates from upstream. Are you able to check to see that you can read in the data correctly using the BART CLI?

What type of acquisition is the second data set: Cartesian, spiral, etc.?

Could be related to the (old) upstream issue: mrirecon/bart#247 A good strategy might be pinging that thread to see if the BART maintainers are interested in taking a look at this problem

@mscipio
Copy link
Contributor Author

mscipio commented Feb 15, 2022

To be honest, I wanted to use this package to avoid having to compile and build the whole BART package, as I was planning to test out other libraries for MR reconstruction and I only needed the functions to decode the twix files.

I will give it a try using BART and see if the newer version of twixread is able to work with my data.

What type of acquisition is the second data set: Cartesian, spiral, etc.?

The second file should be a simple cartesian acquisition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants