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

Missing PBC handled badly? #54

Closed
cortner opened this issue Sep 14, 2024 · 6 comments
Closed

Missing PBC handled badly? #54

cortner opened this issue Sep 14, 2024 · 6 comments

Comments

@cortner
Copy link
Member

cortner commented Sep 14, 2024

using ExtXYZ 

download("https://www.dropbox.com/scl/fi/z6lvcpx3djp775zenz032/Si-PRX-2018.xyz?rlkey=ja5e9z99c3ta1ugra5ayq5lcv&st=cs6g7vbu&dl=1",
         "Si_dataset.xyz");

Si_dataset = ExtXYZ.load("Si_dataset.xyz");

results in

┌ Warning: 'pbc' not contained in dict. Defaulting to all-periodic boundary. 
└ @ ExtXYZ ~/.julia/packages/ExtXYZ/dBeGN/src/atoms.jl:152

which refers to

Si_dataset[1].system_data.periodicity
# (true, true, true)

CC @wcwitt

@cortner
Copy link
Member Author

cortner commented Sep 14, 2024

Versions:

Status `~/gits/ACEpotentials.jl/examples/Tutorial/Project.toml`
  [3b96b61c] ACEpotentials v0.8.0-dev `../..`
  [352459e4] ExtXYZ v0.2.0
  [7073ff75] IJulia v1.25.0
  [b964fa9f] LaTeXStrings v1.3.1
  [6f286f6a] MultivariateStats v0.10.3
  [91a5bcdd] Plots v1.40.8
  [08abe8d2] PrettyTables v2.3.2
  [fd094767] Suppressor v0.2.8

@wcwitt
Copy link

wcwitt commented Sep 14, 2024 via email

@cortner
Copy link
Member Author

cortner commented Sep 14, 2024

I see - I shouldbhave checked that. So the dataset is problematic not the loader?

@jameskermode
Copy link
Member

I agree with Chuck that current behaviour matches spec at https://github.com/libAtoms/extxyz. If lattice is missing then we default to open boundaries, but if it's present the pbc is the correct default.

@cortner
Copy link
Member Author

cortner commented Sep 15, 2024

Ok - I'll just have to manually fix the dataset then. For now I've just removed that system which I think is the correct thing anyhow.

@cortner
Copy link
Member Author

cortner commented Sep 15, 2024

Thanks for the quick response.

@cortner cortner closed this as completed Sep 15, 2024
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

No branches or pull requests

3 participants