Back to the main page.

Bug 1225 - "could be Yokogawa system" warning triggered repeatedly

Status VERIFIED FIXED
Reported 2011-12-09 12:24:00 +0100
Modified 2012-01-03 15:31:43 +0100
Product: FieldTrip
Component: fileio
Version: unspecified
Hardware: Macintosh
Operating System: Mac OS
Importance: P3 trivial
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also:

Björn Christianson - 2011-12-09 12:24:08 +0100

Created attachment 200 Sample data file that triggers repeated warnings. Data files from prototype KIT system (file attached) triggers warning on line 271 of fileio/private/ft_senstype.m repeatedly (>100 times) every time a new file is read. No problems in reading files.


Tilmann Sander-Thommes - 2011-12-09 15:37:02 +0100

I changed two lines in ft_senstype.m from "warning('could be Yokogawa system')" to "warning_once". This should lead to a single warning. Get updated FieldTrip and try it. I will download your file and test it myself. Yours, Till


Tilmann Sander-Thommes - 2011-12-09 16:01:42 +0100

The attached data are from the animal MEG at the UCL ear institute !? FieldTrip does not recognize this system yet having 9 magnetic channels, but in an earlier communication with Gestur Björn Christianson <g.christianson@ucl.ac.uk> the parameters in the MEG 160 software were set to produce useful maps in FiedTrip etc. Yours, Till


Boris Reuderink - 2011-12-22 15:16:31 +0100

Before resolving the issue, I would like to confirm the problem first. Could you provide a script that reproduces the problem? My first attempt results in different errors.


Tilmann Sander-Thommes - 2011-12-22 15:37:56 +0100

The following code should create the warning. Use the YokogawaMEGReader 1.4. Toolbox in external/yokogawa, instead of the GetMEG160 routines. This toolbox is not yet part of FieldTrip officially, but can be found at http://www.yokogawa.com/me/me-login-en.htm and is supported in FT. cfg = []; cfg.dataset = [datafile attached to the first posting]; data = ft_preprocessing(cfg); ft_plot_sens(data.grad); Warning: could be Yokogawa system > In fileio\private\warning_once at 75 In fileio\private\ft_senstype at 271 In ft_chantype at 166 In plotting\private\ft_datatype_sens at 124 In ft_plot_sens at 42 Yours, Till


Robert Oostenveld - 2011-12-22 18:05:49 +0100

I have added fieldtrip/external/yokogawa_meg_reader to the release version. It will be used automatically if you download a new FT version (tomorrow, because the ftp update is this evening). Furthermore I have added explicit support for the "yokogawa9" acquisition system. Finally, it turned out that warning_once was not on the right location to be found, I now copied it into fieldtrip/plotting/private. cfg = []; cfg.dataset = 'c00179-d111021-p1-omission-r1.con'; data = ft_preprocessing(cfg); ft_plot_sens(data.grad); ---------------------------------------- I did the following commit. Note that the required toolbox was already svn added in a previous one. manzana> svn commit utilities/ft_hastoolbox.m plotting/private/warning_once.m fileio/ft_read_header.m forward/ft_senslabel.m forward/ft_senstype.m Sending fileio/ft_read_header.m Sending forward/ft_senslabel.m Sending forward/ft_senstype.m Adding plotting/private/warning_once.m Sending utilities/ft_hastoolbox.m Transmitting file data .... Committed revision 5078. ---------------------------------------- @Bjorn, can you please check with the latest version of FT (the one released this evening) that everything works for you?


Boris Reuderink - 2012-01-03 11:42:07 +0100

Updated status of bug to resolved, and assigned to Robert since he apparently fixed this issue.