Skip to content

Commit

Permalink
add size parameter for minima searching
Browse files Browse the repository at this point in the history
  • Loading branch information
jcwang587 committed Jul 3, 2024
1 parent 20e21f1 commit 9db990f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "xdatbus"
version = "0.3.1"
version = "0.3.2"
description = "A Python package enhancing VASP AIMD simulation"
authors = ["Jiacheng Wang <jiachengwang@umass.edu>"]
maintainers = ["Jiacheng Wang"]
Expand Down
4 changes: 2 additions & 2 deletions xdatbus/fmtd07_neb.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def neb_2d(fes, minima_1, minima_2, n_images, n_steps, spring_constant):
return path_coords, path_fes


def local_minima(data):
filtered_data = minimum_filter(data, size=3, mode="constant", cval=np.inf)
def local_minima(data, size=3):
filtered_data = minimum_filter(data, size=size, mode="constant", cval=np.inf)
minima = data == filtered_data
minima_coords = np.argwhere(minima)
return minima_coords

0 comments on commit 9db990f

Please sign in to comment.