Skip to content

Passing a model to an Analysis leads to a crash in Matlab. #4029

Open
@nickbianco

Description

@nickbianco

Reported by a user on the forum: passing a model to an Analysis can lead to a crash in Matlab. This user was trying to use the API to construct setup files for the AnalyzeTool.

Part of the issue might be that if you pass a model to the constructor of an Analysis, it should also be added to the model, e.g.,

MuscleAnalysis* muscleAnalysis = new MuscleAnalysis(&model);
model.addAnalysis(muscleAnalysis);

If so, this is not very clear from the API nor the documentation.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions