-
Notifications
You must be signed in to change notification settings - Fork 6
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: MN3 and MilkyWayPotential2022 #418
Conversation
Yeah. Technically
It's not handled by equinox. That handles PyTree'ing
Manually. This isn't for correctness, only to ensure nothing changes.
Yes! It would be great to have 3 types of tests:
|
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.
😎
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #418 +/- ##
==========================================
+ Coverage 96.63% 96.75% +0.12%
==========================================
Files 83 84 +1
Lines 3090 3207 +117
==========================================
+ Hits 2986 3103 +117
Misses 104 104 ☔ View full report in Codecov by Sentry. |
I sloppily let a merge commit sneak in but maybe that is ok if you squash and merge? |
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.
Nice! Seeing the separated classes convinced me that this is the right approach.
I think the only remaining issue here is to address the "low" test coverage of the added potentials. |
Co-authored-by: Nathaniel Starkman <nstarman@users.noreply.github.com> Signed-off-by: Adrian Price-Whelan <adrianmpw@gmail.com>
c9bb2d0
to
f500b43
Compare
@nstarman I think this is ready for another look! |
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.
🎉
This implements the MN3 and MilkyWayPotential2022 potential models.
In writing the implementations, I have a few questions:
AbstractPotential
seems to require specifying several boilerplate class attributes:Can you say more about these? Is there no way we can move default behavior to the
__check_init__
of the base class?@partial(jax.jit)
? Isn't that handled by equinox?