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

Refactor gravity parameter initialization and update post-init array conversion to use default dtype #124

Merged
merged 5 commits into from
Mar 4, 2025

Conversation

GiulioRomualdi
Copy link
Member

@GiulioRomualdi GiulioRomualdi commented Feb 27, 2025

This pull request includes several changes to improve the handling of data types and default values in the adam package. The most important changes include updates to the initialization methods in two computation files and modifications to the TorchLike class to use the default tensor type.

Improvements to initialization methods:

Enhancements to TorchLike class:

  • src/adam/pytorch/torch_like.py: Modified the __post_init__ method to convert the array to the default tensor type instead of always converting to double precision.

📚 Documentation preview 📚: https://adam-docs--124.org.readthedocs.build/en/124/

@GiulioRomualdi GiulioRomualdi self-assigned this Feb 27, 2025
@GiulioRomualdi
Copy link
Member Author

CI fixed!

@GiulioRomualdi
Copy link
Member Author

I modified the code so there is no need to update the tests :)

@Giulero Giulero merged commit 4b97a8d into main Mar 4, 2025
18 checks passed
@Giulero Giulero deleted the fix_float64 branch March 4, 2025 08:56
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.

2 participants