Skip to content

Commit

Permalink
add check of eyetrack cfg fieldname for backwards comp.
Browse files Browse the repository at this point in the history
  • Loading branch information
henneysq committed Feb 14, 2024
1 parent 2528048 commit 59d24d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data2bids.m
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@
cfg = ft_checkconfig(cfg, 'renamed', {'coordsystem.writesidecar', 'writejson'});
cfg = ft_checkconfig(cfg, 'renamed', {'event', 'events'}); % cfg.event is used elsewhere in FieldTrip, but here it should be cfg.events with an s
cfg = ft_checkconfig(cfg, 'renamedval', {'suffix', 'eyetracker', 'eyetrack'});
cfg = ft_checkconfig(cfg, 'renamed', {'eyetracker', 'eyetrack'});

% prevent some common errors
cfg = ft_checkconfig(cfg, 'forbidden', {'acq_time'}); % this should be in cfg.scans or in cfg.sessions
Expand Down

0 comments on commit 59d24d0

Please sign in to comment.