-
Notifications
You must be signed in to change notification settings - Fork 2
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
Forward AutodIff Compatibility #3
Conversation
…for differentiability
…SatelliteToolboxGravityModels.jl into autodiff-capability
Hi @jmurphy6895 ! Aweome PR, thank you very much! I just added some general comments, check, please, if they apply. |
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
Hi @jmurphy6895, Can you please check if the failures are only related to test packages that cannot be installed in Julia 1.6? If so, can you modify the test script to ignore those tests in Julia 1.6? I plan to drop support for Julia 1.6 but it will take sometime to update all packages in SatelliteToolbox.jl ecosystem. |
Hey @ronisbr, I don't see your comments on the PR, are they on a different branch or maybe not pushed? As for the failure, yeah it looks like it's because of Julia 1.6: I added a conditional to not run on v1.6 |
Thanks @jmurphy6895 ! I forgot to push the comments :) |
I see why it's still failing, it's not the test it's the .toml compat, I'll loosen it and see if the tests still pass |
I'll get to these changes after work today |
Hi @jmurphy6895 ! Let's ignore those errors. As soon as we merge this commit, I turn off the tests for Julia 1.6. The last thing (sorry, I missed it before): can you please return the version to 0.1.5? I prefer to have a separate commit with the version bump. After that, I will merge this PR and tag the new release :) |
@ronisbr Done! |
Awesome! Let's the CI run and I will merge this! Thank you very much for the PR @jmurphy6895 ! |
Hi @jmurphy6895 ! I did some modifications:
|
Can you please test if I broke something related to autodiff? If not, I will tag the new release. |
LGTM, one step closer to a fully differentiable propagator! |
I changed the internal time to be handled as seconds past JD_J2000 instead of DateTime to allow for automatic differentiation compatibility and changed some of the return types to handle more general inputs, namely ForwardDiff's Duals. Reverse Autodiff is blocked by not knowing how to handle the DCM struct at the moment but will be handled in a future PR.
The previous DateTime interfaces are still present they just internally convert the DateTime to the seconds past JD_J2000 and call the newer function.