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 f07c39a commit bfd71ceCopy full SHA for bfd71ce
src/probeinterface/probe.py
@@ -315,9 +315,8 @@ def set_contacts(
315
316
# Check for duplicate positions
317
unique_positions = np.unique(positions, axis=0)
318
- are_positions_unique = unique_positions.shape[0] == positions.shape[0]
319
-
320
- if not are_positions_unique:
+ positions_are_not_unique = unique_positions.shape[0] != positions.shape[0]
+ if positions_are_not_unique:
321
_raise_non_unique_positions_error(positions)
322
323
self._contact_positions = positions
0 commit comments