PSCM toolbox loadPSCMfile function bug fix #2428
Open
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.
A fix was made to prevent an error if loadPSCMfile was used on a mac on linux machine by replacing line 137 from:
from -> searchDirectory = what(['2020_WholeBodyModelling/Data']).path;
to -> searchDirectory = what(['2020_WholeBodyModelling' filesep 'Data']).path;
Another fix was made that caused an error when the PSCM file was a structured .mat file.
The following change was made from:
from -> model = model.(string(fieldnames(model)));
to ->
if isscalar(fieldnames(model))
% Loading the model in a variable might make it nested. Unnest variable
model = model.(string(fieldnames(model)));
end
I hereby confirm that I have:
develop
as a target branch (top left drop-down menu)(Note: You may replace [ ] with [X] to check the box)