Open
Description
nibabel/nibabel/nicom/csareader.py
Lines 121 to 132 in b46efa3
I think the definition of tag0_n_items
might be a incorrect. The docs (that describe the SPM implementation) say to use the n_items
of the first tag, which here corresponds to the condition tag_no == 0
, not 1. (Feels like a slip while porting 1-indexed MATLAB code). This would make the value calculated on L132 wrong for every item in every tag.
There are no test files with a CSA1 header, and I don't have any, so I can't confirm this.