Back to the main page.

Bug 1909 - lay.label can be row

Status CLOSED FIXED
Reported 2012-12-20 16:58:00 +0100
Modified 2013-06-05 12:15:31 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 normal
Assigned to: Roemer van der Meij
URL:
Tags:
Depends on:
Blocks:
See also:

Vladimir Litvak - 2012-12-20 16:58:39 +0100

I got an error report from a user that he gets an error in SPM from the following code (I think it's also in the testing script): cfg = []; cfg.style = '3d'; cfg.rotate = 0; cfg.grad = sens; cfg.showcallinfo = 'no'; lay = ft_prepare_layout(cfg); [sel1, sel2] = spm_match_str(sens.label, lay.label); label = lay.label(sel2, 1); The error occurs because lay.label is a row rather than a column as expected. I don't know how it happens but there should probably be a line somewhere in ft_prepare_layout guaranteeing that it doesn't.


Roemer van der Meij - 2013-01-23 14:34:46 +0100

Hi Vladimir, Thanks for reporting. I forced it to a column vector now. It might be wise to have a look at the specific sens structure though, I would not be surprised if the row-vector label came from there. It's not in the test-script (assuming you mean test_spm_ft_integration), but it worked fine with the sens that was in the accompanying data-file.


Roemer van der Meij - 2013-06-05 12:15:31 +0200

Closing time