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

doc(biorbd_holonomic_model) #847

Merged
merged 2 commits into from
Feb 21, 2024
Merged

doc(biorbd_holonomic_model) #847

merged 2 commits into from
Feb 21, 2024

Conversation

Ipuch
Copy link
Collaborator

@Ipuch Ipuch commented Feb 16, 2024

Light PR, only updating docstrings while reading the holonomic biorbd model


This change is Reviewable

Copy link
Member

@pariterre pariterre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Ipuch)


bioptim/models/biorbd/biorbd_model.py line 741 at r1 (raw file):

            all_bioviz.append(bioviz.Viz(biorbd_model.path, **kwargs))
            all_bioviz[-1].load_movement(ocp.nlp[idx_phase].variable_mappings["q"].to_second.map(solution["q"]))

is data useless? If so maybe the for loop should be a for nlp in ocp.nlp: ?

Copy link
Collaborator Author

@Ipuch Ipuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @pariterre)


bioptim/models/biorbd/biorbd_model.py line 741 at r1 (raw file):

Previously, pariterre (Pariterre) wrote…

is data useless? If so maybe the for loop should be a for nlp in ocp.nlp: ?

Not useless, see below

   if "q_roots" in solution and "q_joints" in solution:
                # TODO: Fix the mapping for this case

                raise NotImplementedError("Mapping is not implemented for this case")
                q = data
            else:
                q = ocp.nlp[idx_phase].variable_mappings["q"].to_second.map(data)
            all_bioviz[-1].load_movement(q)

Copy link
Member

@pariterre pariterre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Ipuch)

@pariterre
Copy link
Member

@EveCharbie
Time Lagrange has changed on this PR as well.. So your code did not change the behavior, something else prior to your PR did (or a change in Casadi, or in Ipopt, or...)

@pariterre pariterre merged commit 6c919cf into pyomeca:master Feb 21, 2024
19 of 22 checks passed
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