Closed rfdougherty closed 9 years ago
This is in production now, although we still get some scans wrong. Certain localizers are declared as anatomicals, for example.
@scitran/nimsdata attempts to infer the scan type. Any new bugs/problems/issues with inferring scan type should be opened as issues on @scitran/nimsdata
When a nimsimage object is instantiated and its metadata populated, use heuristics to set the 'scan_type' property. Select from one of the following values: shim, localizer, calibration, fieldmap, spectroscopy, diffusion, functional, 3D anatomy, 2D anatomy, or (as a last resort) anatomy.
Note: this code is written, and seems to work. It is part of a large refactor to back-port the nims 2 "nimsdata" structure to nims 1. Once that refactor is complete, I'll push it in.