schorschinho / osprey

All-in-one toolbox for processing of magnetic resonance spectroscopy data.
https://schorschinho.github.io/osprey
MIT License
52 stars 41 forks source link

io_loadspec_niimrs.m : bugfix for optional dim_{n}_header #701

Closed alexcraven closed 3 months ago

alexcraven commented 4 months ago

io_loadpsecniimrs can load additional detail for the "extras" dimension, but did not check for the presence of the corresponding dim{n}_header before using it. This caused failures when reading data generated by a recent spec2nii.

Furthermore, the dim_number index was not set correctly to the identified "extras" dimension.

schorschinho commented 3 months ago

Thank you Alex!