Skip to content

Commit

Permalink
Fix error getting radii in getconec
Browse files Browse the repository at this point in the history
  • Loading branch information
choglass committed Jun 5, 2024
1 parent b31fc1c commit 22473bb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cell2mol/tmcharge_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,11 @@ def getconec(labels: list, pos: list, factor: float, radii="default") -> Tuple[i
# Sometimes argument radii np.ndarry, or list
with warnings.catch_warnings():
warnings.simplefilter(action="ignore", category=FutureWarning)
if radii == "default":
radii = getradii(labels)
if isinstance(radii, np.ndarray):
pass
else :
if radii == "default":
radii = getradii(labels)

for i in range(0, natoms - 1):
for j in range(i, natoms):
Expand Down

0 comments on commit 22473bb

Please sign in to comment.