Skip to content

Commit

Permalink
improve detection and conversion of elekta, megin and neuromag variants
Browse files Browse the repository at this point in the history
see #2277
  • Loading branch information
robertoostenveld committed Jul 14, 2023
1 parent 54af97c commit a9892b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utilities/fixcoordsys.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
data.coordsys = 'ctf';
elseif any(strcmpi(data.coordsys, {'dicom', 'scanlps'}))
data.coordsys = 'dicom';
elseif any(strcmpi(data.coordsys, {'elekta/neuromag', 'elekta', 'megin' }))
elseif contains(data.coordsys, 'neuromag') || contains(data.coordsys, 'elekta') || contains(data.coordsys, 'megin')
% this also applies to ElektaNeuromag and Elekta/Neuromag, which are used in BIDS
data.coordsys = 'neuromag';
elseif any(strcmpi(data.coordsys, {'other'}))
data.coordsys = 'unknown';
Expand Down

0 comments on commit a9892b2

Please sign in to comment.