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

initial attempt at resolving problems with round-tripping isolated systems #48

Merged
merged 2 commits into from
Jun 28, 2024

Conversation

jameskermode
Copy link
Member

Merging this PR will resolve #47

@tjjarvinen
Copy link
Contributor

The issue seems to be with AtomsBaseTesting.test_approx_eq. It does not work for isolate systems that have infinite boundaries.

E.g. this fails

using AtomsBase
using AtomsBaseTesting
using Unitful

hydrogen = isolated_system([
    :H => [0, 0, 0.]u"Å",
    :H => [0, 0, 1.]u"Å"
])

test_approx_eq(hydrogen, hydrogen)

@cortner
Copy link
Member

cortner commented May 23, 2024

another case against using those infinities in AtomsBase.

@tjjarvinen
Copy link
Contributor

New version of AtomsBaseTesting (v0.1.3) should have fixed this now.

Rerunning tests should now give pass for them now, and we can move forward with this PR.

@jameskermode jameskermode merged commit f5d373f into master Jun 28, 2024
7 checks passed
@jameskermode
Copy link
Member Author

thanks for the heads up! merging, then I'll tag a new release.

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.

Saving isolated molecules to a file results a file that cannot be read
3 participants