Use cell- instead of char- array to accommodate filenames of unequal length in RFsens #108
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Background
As standard, the files appear with same lengths as block-names (all of our test data has same file names formatted as a block). However, certain operations (BIDSification for one) might cause file names to differ. In such a case, the following line in RFsens correction causes an error further down the processing:
hMRI-toolbox/hmri_create_RFsens.m
Line 98 in ffa8444
because of using a char-array instead of a cell-array.
This minimal change solves this problem.
Testing
This simple change was tested successfully with our demo-data set with the changed MTw file names as:
Namely: the toolbox without the change in this PR gives an error whereas this PR completes the processing without a problem.
Reference
This PR implements the change suggested here:
#107 (comment)