-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add peak labels to free energy plots #213
Conversation
To my understanding the goal for the related issue is to link the coordinates back to the site labels from the cif file. i.e. |
Update test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @SCiarella , thanks for this PR. I just had a look and left some feedback. The plots look nice, though I'm wondering if it makes sense that the diffusing atom passes through so many cages so quickly.
My overall feeling is that this PR is not complete yet, and I'm not quite sure how this is supposed to be used.
- Can you add some tests for the plot (see
tests/integration/plot_test.py
)? - Can you add some instructions for how this code is supposed to be used?
- The kdtree looks for the nearest atom for every voxel, shouldn't there be based some sort of distance threshold?
Add optional args to Pathways Move structure map into volume object Implement fractional coords for Pathways Correct for orthorombic lattices using pymatgen core Update test for new rounding errors
Add pytest fixtures Add path plots tests
* Add bellman-ford pathfinding algo Add dijkstra-exp pathfinding algo Add minmax-energy pathfinding algo Add testing for extra pathfinding * Update src/gemdat/path.py Rearrange weight_exp Co-authored-by: Stef Smeets <[email protected]> * Update src/gemdat/path.py replace stacked 'or' operators Co-authored-by: Stef Smeets <[email protected]> * Update src/gemdat/path.py replaced stacked 'or' operators (2) Co-authored-by: Stef Smeets <[email protected]> * Move minmax-energy pathfinding to separate function --------- Co-authored-by: Stef Smeets <[email protected]>
I'll review this next week when I'm back! |
7aa311f
to
68606b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand what is going on in this PR, it also includes the changes from #239, which makes this difficult to review. I tried to rebase to main to get rid of the already merged PR, but this did not work.
My main concern is that it is still not clear to me how this is supposed to be used. This api does not make sense to me. How would a user know they would need to run this?
structure = load_known_material('argyrodite')
vol.nearest_structure_reference(structure)
path.cartesian_path(vol)
path.fractional_path(vol)
path.path_over_structure(structure, vol)
plots.energy_along_path(path=path)
vs.
plots.energy_along_path(path=path)
What is the difference?
This is of course also a bit tied to #186. I'm also happy to have a go at updating the code. Otherwise let me know if you want to have a short chat about it!
68606b7
to
fdb06a7
Compare
Co-authored-by: Stef Smeets <[email protected]>
Update tests Fix bug in fractional coordinates labels
Notice that I have not implemented the |
This branch covers #203.


I have used a KD-tree to precompute a dictionary that maps each site to the closest peak.
Then after finding the path, I implemented a method to use the dictionary to identify which peaks get explored.
This information gets automatically plotted on the x-axis of the energy landscape: