help
help > RE: Design matrix tips
Jan 16, 2017 11:01 PM | Andrew Zalesky
RE: Design matrix tips
Hi Christian,
I'm glad it is working for you now. However, I hope that the changes you have made do not only allow for one file to be read in within a directory.
The original version should work if you don't have other unnecessary/irrelevant files in the directory that you are reading from.
Andrew
Originally posted by Christian Clemm:
Dear Andrew,
it seems we have found what caused the problem:
In NBSrun.m, line 183 reads:
[nbs.GLM.y,UI.matrices.ok,DIMS]=read_matrices([fileparts(UI.matrices.ui),filesep]);
So, it seems that the path excluding the filename is passed down to "read_matrices". This causes long delays or errors (especially if you have lots of other stuff stored in the directory).
We have replaced it with:
[nbs.GLM.y,UI.matrices.ok,DIMS]=read_matrices(UI.matrices.ui);
This way, the path including the filename is passed down, and it seems to work.
Does this make sense to you? We aren't sure we understand the purpose of line 183.
Thank you so much!
Christian
I'm glad it is working for you now. However, I hope that the changes you have made do not only allow for one file to be read in within a directory.
The original version should work if you don't have other unnecessary/irrelevant files in the directory that you are reading from.
Andrew
Originally posted by Christian Clemm:
Dear Andrew,
it seems we have found what caused the problem:
In NBSrun.m, line 183 reads:
[nbs.GLM.y,UI.matrices.ok,DIMS]=read_matrices([fileparts(UI.matrices.ui),filesep]);
So, it seems that the path excluding the filename is passed down to "read_matrices". This causes long delays or errors (especially if you have lots of other stuff stored in the directory).
We have replaced it with:
[nbs.GLM.y,UI.matrices.ok,DIMS]=read_matrices(UI.matrices.ui);
This way, the path including the filename is passed down, and it seems to work.
Does this make sense to you? We aren't sure we understand the purpose of line 183.
Thank you so much!
Christian
Threaded View
Title | Author | Date |
---|---|---|
Matthew Hoptman | Feb 13, 2013 | |
Andrew Zalesky | Feb 13, 2013 | |
Christian Clemm | Jan 14, 2017 | |
Andrew Zalesky | Jan 14, 2017 | |
Christian Clemm | Jan 16, 2017 | |
Christian Clemm | Jan 16, 2017 | |
Andrew Zalesky | Jan 16, 2017 | |
Christian Clemm | Jan 14, 2017 | |