Back to the main page.

Bug 1300 - test_ft_timelockanalysis fails on k=18

Status CLOSED FIXED
Reported 2012-02-01 10:57:00 +0100
Modified 2012-02-06 16:28:31 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Linux
Importance: P3 normal
Assigned to: Johanna
URL:
Tags:
Depends on:
Blocks:
See also:

Johanna - 2012-02-01 10:57:47 +0100

This is plexon data, file: p213parall.nex. Fails on assertion. Although it's weird because, in one example where it fails, it thinks two NaN's are not equal. For example, data.avg(7360) is NaN datanew.avg(7360) is NaN but isequal(datanew.avg(7360),data.avg(7360)) gives result = 0.


Jan-Mathijs Schoffelen - 2012-02-01 11:00:11 +0100

there is also an 'isequalwithnans' function that returns true when comparing nans. You may want to use this one.


Johanna - 2012-02-01 13:37:11 +0100

thanks JM for the tip! it's isequalwithequalnans (not isequalwithnans), but that solved it. svn commit 5194.