Skip to content

Commit abfbb59

Browse files
committed
Fix mask
1 parent db8ca48 commit abfbb59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/probeinterface/probe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def set_contacts(
355355
# Check for duplicate positions side by side
356356
contact_sides = np.asarray(contact_sides).astype(str)
357357
for side in ("front", "back"):
358-
mask = contact_sides == "front"
358+
mask = contact_sides == side
359359
unique_positions = np.unique(positions[mask], axis=0)
360360
positions_are_not_unique = unique_positions.shape[0] != positions[mask].shape[0]
361361
if positions_are_not_unique:

0 commit comments

Comments
 (0)