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

pymatgen integration #1

Open
janosh opened this issue Jul 28, 2023 · 1 comment
Open

pymatgen integration #1

janosh opened this issue Jul 28, 2023 · 1 comment

Comments

@janosh
Copy link

janosh commented Jul 28, 2023

This looks like a really nice project! We're having some trouble with installing and running the original Fortran implementation of bader (not M1 Mac compatible) over at materialsproject/pymatgen#3191.

We're looking into switching to pybader instead. Just wanted to check what the long-term development plans for pybader are and if you'd be interested in a PR to add some tests.

I also noticed you started the process of creating python bindings for bader-rs in 2021. Is that still on the table?

@adam-kerrigan
Copy link
Owner

Hi Janosh,

The long-term plans are to have pybader be bindings of bader-rs. I gave up on the "pure" python implementation when I was trying to adapt the weight method for multi-threading. Now that I've done this I'm quite happy with the speed (even when not threaded) and ability to add more robust critical point detection. The way I see it working is:

  • send lattice, atoms and density to bader-rs
  • get a map of voxel -> atom, charge & volume (& spin) of each atom, list of critical points
  • further analysis of critical points and oxidation etc done in python

I'd like to totally drop the binary from bader-rs but I'm still unsure on this as I also like the idea of having the binary in rust and leave the python for just scripting, in which case the I/O and entry points from pybader will be gone.

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