We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db8ca48 commit abfbb59Copy full SHA for abfbb59
src/probeinterface/probe.py
@@ -355,7 +355,7 @@ def set_contacts(
355
# Check for duplicate positions side by side
356
contact_sides = np.asarray(contact_sides).astype(str)
357
for side in ("front", "back"):
358
- mask = contact_sides == "front"
+ mask = contact_sides == side
359
unique_positions = np.unique(positions[mask], axis=0)
360
positions_are_not_unique = unique_positions.shape[0] != positions[mask].shape[0]
361
if positions_are_not_unique:
0 commit comments