Skip to content

Commit

Permalink
chore: run lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Aug 23, 2024
1 parent b67bc99 commit 93b670a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/py/mat3ra/made/tools/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def get_undercoordinated_atoms(
atom_neighbors_info = {}
for idx in indices_to_check:
coordinate = coordinates_array[idx]
neighbors_indices = get_nearest_neighbors_atom_indices_for_atom(material, coordinate, cutoff=6) or []
neighbors_indices = get_nearest_neighbors_atom_indices(material=material, coordinate=coordinate, cutoff=6) or []
neighbors_coordinates = [coordinates_array[i] for i in neighbors_indices]
neighbors_center = get_center_of_coordinates(neighbors_coordinates)
atom_neighbors_info[idx] = (len(neighbors_indices), neighbors_indices, neighbors_center)
Expand Down
5 changes: 2 additions & 3 deletions tests/py/unit/test_tools_modify.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from ase.build import bulk
from mat3ra.made.material import Material
from mat3ra.made.tools.convert import from_ase

from mat3ra.made.tools.modify import (
add_vacuum,
filter_by_circle_projection,
Expand All @@ -10,14 +9,14 @@
filter_by_rectangle_projection,
filter_by_sphere,
filter_by_triangle_projection,
passivate_surface,
remove_vacuum,
rotate_material,
translate_to_z_level,
passivate_surface,
)
from mat3ra.utils import assertion as assertion_utils

from .fixtures import SI_CONVENTIONAL_CELL, SI_SLAB, SI_SLAB_VACUUM, SI_SLAB_PASSIVATED
from .fixtures import SI_CONVENTIONAL_CELL, SI_SLAB, SI_SLAB_PASSIVATED, SI_SLAB_VACUUM

COMMON_PART = {
"units": "crystal",
Expand Down

0 comments on commit 93b670a

Please sign in to comment.