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

[GSoC] Planar Joint #24046

Merged
merged 5 commits into from
Sep 23, 2022
Merged

[GSoC] Planar Joint #24046

merged 5 commits into from
Sep 23, 2022

Conversation

tjstienstra
Copy link
Contributor

References to other Issues or PRs

Part of #21519

Brief description of what is fixed or changed

Implements the PlanarJoint

Other comments

Release Notes

  • physics.mechanics
    • Added a PlanarJoint

@sympy-bot
Copy link

sympy-bot commented Sep 12, 2022

Hi, I am the SymPy bot (v167). I'm here to help you write a release notes entry. Please read the guide on how to write release notes.

Your release notes are in good order.

Here is what the release notes will look like:

This will be added to https://github.com/sympy/sympy/wiki/Release-Notes-for-1.12.

Click here to see the pull request description that was parsed.
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->

#### References to other Issues or PRs
<!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact
format, e.g. "Fixes #1234" (see
https://tinyurl.com/auto-closing for more information). Also, please
write a comment on that issue linking back to this pull request once it is
open. -->
Part of #21519

#### Brief description of what is fixed or changed
Implements the PlanarJoint

#### Other comments


#### Release Notes

<!-- Write the release notes for this release below between the BEGIN and END
statements. The basic format is a bulleted list with the name of the subpackage
and the release note for this PR. For example:

* solvers
  * Added a new solver for logarithmic equations.

* functions
  * Fixed a bug with log of integers.

or if no release note(s) should be included use:

NO ENTRY

See https://github.com/sympy/sympy/wiki/Writing-Release-Notes for more
information on how to write release notes. The bot will check your release
notes automatically to see if they are formatted correctly. -->

<!-- BEGIN RELEASE NOTES -->
* physics.mechanics
  * Added a PlanarJoint
<!-- END RELEASE NOTES -->

Update

The release notes on the wiki have been updated.

@sympy-bot
Copy link

sympy-bot commented Sep 12, 2022

🟠

Hi, I am the SymPy bot (v167). I've noticed that some of your commits add or delete files. Since this is sometimes done unintentionally, I wanted to alert you about it.

This is an experimental feature of SymPy Bot. If you have any feedback on it, please comment at sympy/sympy-bot#75.

The following commits add new files:

  • 7485fbc:
    • doc/src/modules/physics/mechanics/api/PlanarJoint.svg

If these files were added/deleted on purpose, you can ignore this message.

@tjstienstra
Copy link
Contributor Author

@brocksam, @moorepants, @sidhu1012 FYI
This PR should be merged after #24037

@tjstienstra tjstienstra force-pushed the PlanarJoint branch 6 times, most recently from 524882c to 36410f9 Compare September 12, 2022 13:26
@github-actions
Copy link

github-actions bot commented Sep 12, 2022

Benchmark results from GitHub Actions

Lower numbers are good, higher numbers are bad. A ratio less than 1
means a speed up and greater than 1 means a slowdown. Green lines
beginning with + are slowdowns (the PR is slower then master or
master is slower than the previous release). Red lines beginning
with - are speedups.

Significantly changed benchmark results (PR vs master)

Significantly changed benchmark results (master vs previous release)

       before           after         ratio
     [41d90958]       [f002fe53]
     <sympy-1.11.1^0>                 
-         987±2μs          632±1μs     0.64  solve.TimeSparseSystem.time_linear_eq_to_matrix(10)
-     2.82±0.01ms         1.18±0ms     0.42  solve.TimeSparseSystem.time_linear_eq_to_matrix(20)
-     5.67±0.02ms         1.72±0ms     0.30  solve.TimeSparseSystem.time_linear_eq_to_matrix(30)

Full benchmark results can be found as artifacts in GitHub Actions
(click on checks at the top of the PR).

@tjstienstra tjstienstra force-pushed the PlanarJoint branch 2 times, most recently from e177b59 to 9ef356e Compare September 14, 2022 14:27
@tjstienstra tjstienstra marked this pull request as ready for review September 14, 2022 14:27
Copy link
Contributor

@brocksam brocksam left a comment

Choose a reason for hiding this comment

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

Looks like all combinations of possible user inputs are accounted for in the tests.

@tjstienstra tjstienstra force-pushed the PlanarJoint branch 2 times, most recently from e5cd48f to 70e43af Compare September 15, 2022 15:33
@tjstienstra
Copy link
Contributor Author

@brocksam Just updated the set_vectors method as we discussed and also added a test of how I would do the example we discussed.

@moorepants
Copy link
Member

There was some recent editing to the _compilation.py in #24059

@moorepants
Copy link
Member

Can you update with master?

@tjstienstra tjstienstra deleted the PlanarJoint branch September 21, 2022 11:00
@tjstienstra tjstienstra restored the PlanarJoint branch September 21, 2022 11:02
@tjstienstra tjstienstra deleted the PlanarJoint branch September 21, 2022 11:03
@tjstienstra tjstienstra restored the PlanarJoint branch September 21, 2022 11:04
@tjstienstra
Copy link
Contributor Author

tjstienstra commented Sep 21, 2022

Did a rebase to the master and squased my commits, so the commit tree is not as messy with all those small commits. Sorry for the mess of deleting and restoring the branch.

@tjstienstra
Copy link
Contributor Author

After some discussing with @brocksam and @moorepants we came to the conclusion that it is best to leave the planar_vectors and rotation_axis arguments out for now. Since most of the time people will be defining the interframe anyways, so giving it as an extra option can be confusing. Besides that it is also better to not implement these unnecessary interface features for now, since they may make future more relevant development, like implementing constraints or efficient choice of generalized speeds, more difficult.

@moorepants
Copy link
Member

Sounds good to me. Let me know when this one is ready and I can merge.

Copy link
Contributor

@brocksam brocksam left a comment

Choose a reason for hiding this comment

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

Minor typo/punctuation suggestions. Once corrected this is ready to be merged.

@brocksam
Copy link
Contributor

@moorepants, assuming that the tests still pass, this PR is ready for merging.

@moorepants moorepants merged commit 870bd54 into sympy:master Sep 23, 2022
@tjstienstra tjstienstra deleted the PlanarJoint branch October 28, 2022 17:25
@moorepants moorepants added the CZI: Codegen/Biomech Sam Brockie's CZI-funded postdoc work on codegen and biomechanics label Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CZI: Codegen/Biomech Sam Brockie's CZI-funded postdoc work on codegen and biomechanics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants