I found that in one of our VIDA scan, VoiNormal and VoiInPlaneRot only exist in the added regex, which essentially one of the existing regex without <Precision> information.
In my case, the VoiNormalSag, VoiNormalCor, and VoiInPlaneRot are empty, while the VoiNormalTra is 1 and existed in other places (e.g. sSpecPara.sVoI.sNormal.dTra) with the same value.
I found that in one of our VIDA scan,
VoiNormal
andVoiInPlaneRot
only exist in the added regex, which essentially one of the existing regex without<Precision>
information.In my case, the
VoiNormalSag
,VoiNormalCor
, andVoiInPlaneRot
are empty, while theVoiNormalTra
is 1 and existed in other places (e.g.sSpecPara.sVoI.sNormal.dTra
) with the same value.Without adding this, it will raise
KeyError
since the patterns are not found. https://github.com/openmrslab/suspect/blob/b35dbe684fd8edea4e9700dd3b8992401521d689/suspect/io/twix.py#L123