Object-Oriented Features #24
benjaminpope
started this conversation in
Ideas
Replies: 1 comment
-
Thanks for bringing this up @benjaminpope! As written, from jaxoplanet import light_curves, orbits
orbit = orbits.KeplerianOrbit.init(
period=...
)
lc = light_curves.QuadLightCurve(u1, u2).light_curve(orbit, t) All of these objects interact properly with JAX as Pytrees, etc. I don't love the idea of baking something like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just wanted to raise the question of how object oriented we want jaxoplanet & starry to be. The original versions of exoplanet & starry are object oriented with orbits and stellar/planetary map properties. It would be nice to have a similar syntax to onboard new users.
For our team's separate optics project dLux we have built an object-oriented Jax interface to numpyro, called zodiax on top of equinox. This, or another architecture, could be a nice way of replicating the original usage while maintaining good performance in Jax.
Beta Was this translation helpful? Give feedback.
All reactions