bids-standard / legacy-validator

Validator for the Brain Imaging Data Structure
https://bids-standard.github.io/legacy-validator/
MIT License
185 stars 110 forks source link

data2bids error at line #1141

Closed sagihaider closed 3 years ago

sagihaider commented 3 years ago

Do we believe these two lines need to be swapped? When we are validating the BIDS data it was throwing an error and after carefully looking at it we believed at the above suggestion. Many thanks!

cfg.coordsystem.HeadCoilCoordinates                             = ft_getopt(cfg.coordsystem, 'HeadCoilCoordinateSystem'                       ); % OPTIONAL. Key:value pairs describing head localization coil labels and their coordinates, interpreted following the HeadCoilCoordinateSystem, e.g., {"NAS": [12.7,21.3,13.9], "LPA": [5.2,11.3,9.6], "RPA": [20.2,11.3,9.1]}. Note that coils are not always placed at locations that have a known anatomical name (e.g. for Neuromag/Elekta, Yokogawa systems); in that case generic labels can be used (e.g. {"coil1": [122,213,123], "coil2": [67,123,86], "coil3": [219,110,81]} ).
cfg.coordsystem.HeadCoilCoordinateSystem                        = ft_getopt(cfg.coordsystem, 'HeadCoilCoordinates' 
sappelhoff commented 3 years ago

hi @sagihaider, please open your issues about data2bids on the fieldtrip repository: https://github.com/fieldtrip/fieldtrip

This repository is only for bids-validator related issues.