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

Neighbourlist needs bulk=true? #3

Closed
cortner opened this issue Sep 28, 2015 · 6 comments
Closed

Neighbourlist needs bulk=true? #3

cortner opened this issue Sep 28, 2015 · 6 comments

Comments

@cortner
Copy link
Member

cortner commented Sep 28, 2015

push!(LOAD_PATH, "..")
using PyCall
using ASE
@pyimport matscipy.neighbours as matscipy_nlist
at = bulk("Al"; cubic=true)
at = repeat(at, (3, 3, 3))
@time NL = matscipy_nlist.neighbour_list("ijd", at.po, 3.1)

this returns neighbours as expected.

Changing to

at = bulk("Al"; cubic=false)

returns an empty neighbourlist.

(Int32[],Int32[],Float64[])

(also, it takes 6.8 second instead of 0.02 seconds)

@pastewka
Copy link
Collaborator

Hi Christoph,

this looks like a bug, I’ll look into this. It should work with non-orthogonal cells.

Best,
Lars

@pastewka
Copy link
Collaborator

Hi Christoph,

should be resolved in latest commit. Can you test and report back here?

Best,
Lars

@cortner
Copy link
Member Author

cortner commented Sep 28, 2015

Thank you! The list now returns something. (I haven't actually checked whether it returns the correct neighbours) I can do that later if useful.

@pastewka
Copy link
Collaborator

I you could test, that would be great. I'll mark this as resolved for the time being.

@cortner
Copy link
Member Author

cortner commented Sep 28, 2015

@pastewka I did a visual comparison with the ASE neighbour list and they match ok. So this seems indeed resolved. Thank you, again.

@pastewka
Copy link
Collaborator

Great, thanks!

-------- Ursprüngliche Nachricht --------
Von: Christoph Ortner notifications@github.com
Datum: 28.09.2015 15:44 (GMT+01:00)
An: libAtoms/matscipy matscipy@noreply.github.com
Cc: "Pastewka, Lars (IAM)" lars.pastewka@kit.edu
Betreff: Re: [matscipy] Neighbourlist needs bulk=true? (#3)

@pastewkahttps://github.com/pastewka I did a visual comparison with the ASE neighbour list and they match ok. So this seems indeed resolved. Thank you, again.

Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-143747594.

pgrigorev pushed a commit to pgrigorev/matscipy that referenced this issue Nov 23, 2023
DOC: switched to ase plots for SF visualisation
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

2 participants