Skip to content

Commit

Permalink
update: convert position to coordinate where needed
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Oct 2, 2024
1 parent 6b439c7 commit 534e111
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/py/mat3ra/made/tools/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,8 @@ def get_local_extremum_atom_index(
Returns:
int: id of the atom with the minimum or maximum z-coordinate.
"""
if len(coordinate) == 2:
coordinate.append(0.0)
new_material = material.clone()
new_material.to_cartesian()
if not use_cartesian_coordinates:
Expand Down

0 comments on commit 534e111

Please sign in to comment.