openmrslab / suspect

MRS processing tools
https://suspect.readthedocs.io/en/latest/
MIT License
33 stars 23 forks source link

Added regex for extracting metadata on VIDA data #164

Closed darrencl closed 1 year ago

darrencl commented 1 year ago

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.

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