Skip to content

Add an ability to set the default unit system globally #15

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

Open
orionarcher opened this issue Mar 5, 2025 · 0 comments
Open

Add an ability to set the default unit system globally #15

orionarcher opened this issue Mar 5, 2025 · 0 comments
Labels
enhancement New feature or request ux User experience

Comments

@orionarcher
Copy link
Collaborator

There should be an option to globally set the default unit system. Something like:

import torchsim

torchsim.default_units = MetalUnits

Janosh previously suggested

we could define global TorchsimSettings similar to atomate2's Atomate2Settings. probably just make it a dataclass though, not a Pydantic model to avoid the a new dependency

@orionarcher orionarcher added enhancement New feature or request ux User experience labels Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ux User experience
Projects
None yet
Development

No branches or pull requests

1 participant