Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSCM toolbox loadPSCMfile function bug fix #2428

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

trjhensen
Copy link
Contributor

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:

  • Tested my code on my own machine
  • Followed the guidelines in the Contributing Guide
  • Selected develop as a target branch (top left drop-down menu)

(Note: You may replace [ ] with [X] to check the box)

@farid-zare farid-zare closed this Feb 17, 2025
@farid-zare farid-zare reopened this Feb 17, 2025
Copy link
Contributor

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️
235 188 0 47

No failed tests ✨

Github Test Reporter by CTRF 💚

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants