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

[RTM] Free floating dynamics #488

Merged
merged 23 commits into from
Jul 19, 2022
Merged

Conversation

Sciancisco
Copy link
Contributor

@Sciancisco Sciancisco commented Jun 16, 2022

All Submissions:

  • Have you followed the guidelines in our Contributing document [docs/contribution.md]?
  • Have you checked to ensure there aren't other open [Pull Requests] for the same update/change?
  • Have you opened/linked the issue related to your pull request?
  • Have you used the tag [WIP] for on-going changes, and removed it when the pull request was ready?
  • When ready to merge, have you sent a comment pinging @pariterre in it?

New Feature Submissions:

  1. Does your submission pass the tests (if not please explain why this is intended)?
  2. Did you write a proper documentation (docstrings and ReadMe)
  3. Have you linted your code locally prior to submission (using the command: black . -l120 --exclude "external/*")?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new examples for your core changes, as applicable?
  • Have you written new tests for your core changes, as applicable?

Related to #487


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 3 of 3 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @Sciancisco)


.gitignore line 97 at r2 (raw file):

# Remove other development artifacts
examples/sandbox

weird...

Code quote:

examples/sandbox

bioptim/dynamics/dynamics_functions.py line 476 at r2 (raw file):

        """
        DynamicsFunctions.apply_parameters(parameters, nlp)
        q = DynamicsFunctions.get(nlp.states["q"], states)

Add a raise is implicit

Code quote:

        DynamicsFunctions.apply_parameters(parameters, nlp)
        q = DynamicsFunctions.get(nlp.states["q"], states)
        qdot = DynamicsFunctions.get(nlp.states["qdot"], states)
        qddot_joints = DynamicsFunctions.get(nlp.states["qddot_joints"], controls)

@codecov
Copy link

codecov bot commented Jun 17, 2022

Codecov Report

Merging #488 (6b33006) into master (964399f) will decrease coverage by 0.12%.
The diff coverage is 23.80%.

❗ Current head 6b33006 differs from pull request most recent head 7698902. Consider uploading reports for the commit 7698902 to get more accurate results

@@            Coverage Diff             @@
##           master     #488      +/-   ##
==========================================
- Coverage   80.25%   80.12%   -0.13%     
==========================================
  Files          85       85              
  Lines        9268     9289      +21     
==========================================
+ Hits         7438     7443       +5     
- Misses       1830     1846      +16     
Impacted Files Coverage Δ
bioptim/dynamics/dynamics_functions.py 94.95% <20.00%> (-3.61%) ⬇️
bioptim/dynamics/configure_problem.py 89.28% <27.27%> (-2.10%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a739cf7...7698902. Read the comment docs.

@pariterre pariterre changed the title Free floating dynamics [WIP] [WIP] Free floating dynamics Jun 17, 2022
Copy link
Contributor Author

@Sciancisco Sciancisco 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: 1 of 7 files reviewed, 2 unresolved discussions (waiting on @pariterre and @Sciancisco)


bioptim/dynamics/dynamics_functions.py line 476 at r2 (raw file):

Previously, pariterre (Pariterre) wrote…

Add a raise is implicit

Done.

@Sciancisco Sciancisco changed the title [WIP] Free floating dynamics Free floating dynamics Jun 29, 2022
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 3 files at r3, 4 of 6 files at r4, 2 of 3 files at r5, all commit messages.
Reviewable status: 7 of 8 files reviewed, 2 unresolved discussions (waiting on @pariterre and @Sciancisco)


tests/test_dynamics.py line 1132 at r5 (raw file):

    NonLinearProgram.add(ocp, "dynamics_type", Dynamics(DynamicsFcn.JOINTS_ACCELERATION_DRIVEN), False)

    np.random.seed(42)

love it!

@Sciancisco Sciancisco changed the title Free floating dynamics [RTR] Free floating dynamics Jul 4, 2022
check if nb_root > 0, otherwise this dynamic doesn't make sense
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 1 of 3 files at r5, 1 of 1 files at r6, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Sciancisco)


.gitignore line 97 at r2 (raw file):

Previously, pariterre (Pariterre) wrote…

weird...

I still don't understand why you need it twice...

@pariterre pariterre changed the title [RTR] Free floating dynamics [RTM] Free floating dynamics Jul 14, 2022
Copy link
Contributor Author

@Sciancisco Sciancisco 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)


tests/test_dynamics.py line 1132 at r5 (raw file):

Previously, pariterre (Pariterre) wrote…

love it!

the answer

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.

:lgtm:

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

@pariterre pariterre merged commit 62660ae into pyomeca:master Jul 19, 2022
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.

None yet

2 participants