Back to the main page.
Bug 1797 - ft_artifact_zvalue (and ft_artifact_xxx) fail
Status | CLOSED FIXED |
Reported | 2012-10-29 15:19:00 +0100 |
Modified | 2012-11-29 09:12:28 +0100 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | PC |
Operating System: | Windows |
Importance: | P3 normal |
Assigned to: | Jan-Mathijs Schoffelen |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
- 2012-10-29 15:19:19 +0100
A script which I've been using to search the same dataset for several different types of artifact (using ft_artifact_xxx) suddenly didn't work anymore, producing the below error. ??? Undefined function or method 'sum' for input arguments of type 'cell'. Error in ==> ft_artifact_zvalue at 276 sumval = sumval + sum(dat,2); To make sure this was reproducible, I downloaded the sample artifact dataset from http://fieldtrip.fcdonders.nl/tutorial/automatic_artifact_rejection and attempted to follow the tutorial there. ft_artifact_zvalue failed with the same error message. I am using fieldtrip from inside the donders, and this error occurred both on a mentat and on my windows PC. I note that the artifact rejection tutorial opens with a statement to the effect that ft_artifact_xxx functions will soon become obsolete. Although my script calls ft_artifact_xxx, the tutorial calls ft_artifact_zvalue directly and fails with an identical error, so I don't think that's where the problem lies.
Jan-Mathijs Schoffelen - 2012-10-29 15:32:45 +0100
Hi Tom, My bad. I copied and pasted some stuff which was obviously not correct. I'll fix it right away. Should be available again in the coming 30 minutes or so. For the time being you could specify cfg.memory = 'low', which makes the function slower, but probably resistant against the issue. Apologies again. JM
- 2012-10-29 15:36:11 +0100
Thanks JM. (In reply to comment #1)
Jan-Mathijs Schoffelen - 2012-10-29 15:37:53 +0100
Hi Tom, My bad. I copied and pasted some stuff which was obviously not correct. I'll fix it right away. Should be available again in the coming 30 minutes or so. For the time being you could specify cfg.memory = 'low', which makes the function slower, but probably resistant against the issue. Apologies again. JM
Jan-Mathijs Schoffelen - 2012-10-29 15:38:07 +0100
bash-3.2$ svn commit ft_artifact_zvalue.m Sending ft_artifact_zvalue.m Transmitting file data . Committed revision 6801.
Jan-Mathijs Schoffelen - 2012-10-29 15:51:13 +0100
bash-3.2$ svn commit ft_artifact_zvalue.m Sending ft_artifact_zvalue.m Transmitting file data . Committed revision 6804. There was a final issue, now fixed