-
Notifications
You must be signed in to change notification settings - Fork 324
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
A few tweaks to MocoExpressionBasedParameterGoal
#3893
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed all commit messages.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @nickbianco)
OpenSim/Moco/MocoGoal/MocoExpressionBasedParameterGoal.h
line 79 at r1 (raw file):
} /** Set the mathematical expression to minimize or constraint. Variable
constraint -> constrain
Maybe it should say arithmetic instead of mathematical too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @AllisonJohn)
OpenSim/Moco/MocoGoal/MocoExpressionBasedParameterGoal.h
line 79 at r1 (raw file):
Previously, AllisonJohn wrote…
constraint -> constrain
Maybe it should say arithmetic instead of mathematical too
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed all commit messages.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @nickbianco)
OpenSim/Moco/MocoGoal/MocoExpressionBasedParameterGoal.cpp
line 78 at r2 (raw file):
} catch (Lepton::Exception& ex) { const std::string msg = ex.what(); std::string undefinedVar = msg.substr(32, msg.size() - 32);
The reason I had the if statement before is that I thought there could be other types of errors that are not for undefined variables? So I think this change could make it seem like there was an undefined variable when there really isn't.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @nickbianco)
OpenSim/Moco/MocoGoal/MocoExpressionBasedParameterGoal.cpp
line 78 at r2 (raw file):
Previously, AllisonJohn wrote…
The reason I had the if statement before is that I thought there could be other types of errors that are not for undefined variables? So I think this change could make it seem like there was an undefined variable when there really isn't.
oops I didn't mean to approve
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @AllisonJohn)
OpenSim/Moco/MocoGoal/MocoExpressionBasedParameterGoal.cpp
line 78 at r2 (raw file):
Previously, AllisonJohn wrote…
oops I didn't mean to approve
Ah, good point. I've added it back and also added a similar if-statement to ExpressionBasedFunction
while I was at it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 2 files at r2, 2 of 2 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @nickbianco)
Windows failure is unrelated, merging. Thanks @AllisonJohn! |
Brief summary of changes
A handful of changes made to some aspects of
MocoExpressionBasedParameterGoal
that I noticed while using this as a reference forExpressionBasedFunction
. I've also opted to change the propertyvariable_names
to simplyvariables
.Testing I've completed
Ran the existing tests in
testMocoGoals.cpp
.Looking for feedback on...
CHANGELOG.md (choose one)
This change is