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

feat(Translational): add AccelerationSensor #260

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

sathvikbhagavan
Copy link
Member

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Adding AccelerationSensor which is particularly useful for measuring acceleration of masses without having to do force/mass.

Copy link

codecov bot commented Feb 5, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 54.65%. Comparing base (1fbd1d0) to head (1756b53).

Files Patch % Lines
src/Mechanical/Translational/sensors.jl 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #260      +/-   ##
==========================================
- Coverage   54.68%   54.65%   -0.04%     
==========================================
  Files          48       48              
  Lines        1644     1645       +1     
==========================================
  Hits          899      899              
- Misses        745      746       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sathvikbhagavan
Copy link
Member Author

@ChrisRackauckas, can this be merged?

Comment on lines +170 to +171
@named sys = ODESystem(eqs, t, [], []; systems = [force, source, mass, acc, acc_output])
s = complete(structural_simplify(sys))
Copy link
Member

Choose a reason for hiding this comment

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

Why not @mtkbuild?

Copy link
Member Author

Choose a reason for hiding this comment

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

I was just following the way other tests are written 😅

@ChrisRackauckas
Copy link
Member

we will need to mass update that

@ChrisRackauckas ChrisRackauckas merged commit 2da69d3 into SciML:main Feb 23, 2024
5 of 9 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.

4 participants