fieldtrip/fieldtrip — pull request #32 by swederik (2013-11-26 12:07:57+00:00)
Title: WIP: Attempting to fix the OpenMEEG test failure

Hello!

I'm trying to compare a new method against the analytical 4-shell sphere solution for forward modelling EEG. To do this, I'd like to use OpenMEEG. The problem is that when I clone the latest master and run testOpenMEEGeeg the test fails. This is on Mac OSX 10.9 which uses clang instead of gcc.

This PR (still a work-in-progress) aims to fix the tests for OpenMEEG.

Issues:

- [x] clang is not gcc, and doesn't return a version properly
- [x] some function calls are deprecated
- [ ] Functions are asking for OpenMEEG file format 1.1 (see data/README.rst)?
- [ ] Assert fails at the end of the tests because the RDM (Relative Difference Measure) and the MAG (Magnitude ratio) are incorrect

I'm still getting:

RDMs: 1.3811 1.5466 1.0326
MAGs: 0.0010549 0.0010279 0.00052219

Which seems very wrong, given that RDM should be close to zero, and MAG should be close to 1 (and it's not just they're flipped!). So naturally, the asserts fail:

thr = 2e-2;
assert(norm(rdms-[0.019963 0.019962 0.10754])