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

Rattle breaks under unitful #10

Closed
niklasschmitz opened this issue Oct 23, 2024 · 1 comment · Fixed by #11
Closed

Rattle breaks under unitful #10

niklasschmitz opened this issue Oct 23, 2024 · 1 comment · Fixed by #11

Comments

@niklasschmitz
Copy link
Contributor

AtomsBuilder's rattle function currently breaks, when unitful conversion is required:

using AtomsBuilder
using Unitful, UnitfulAtomic

system = bulk(:Si)
rattle!(system, 0.1)  # works
rattle!(system, 0.1u"angstrom")  # works
rattle!(system, 0.1u"bohr")  # MethodError

Pkg.status()
#  [f5cc8831] AtomsBuilder v0.2.0
#  [a7773ee8] UnitfulAtomic v1.0.0

I can open a small PR to fix this, if it makes sense?

@cortner
Copy link
Member

cortner commented Oct 23, 2024

yes please.

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 a pull request may close this issue.

2 participants