Skip to content

Commit 43afd80

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a28cc07 commit 43afd80

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/probeinterface/probegroup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,9 @@ def get_slice(self, selection: np.ndarray[bool | int]) -> "ProbeGroup":
300300

301301
selection = np.asarray(selection)
302302
if selection.dtype == "bool":
303-
assert selection.shape == (n,), (
304-
f"if array of bool given it must be the same size as the number of contacts {selection.shape} != {n}"
305-
)
303+
assert selection.shape == (
304+
n,
305+
), f"if array of bool given it must be the same size as the number of contacts {selection.shape} != {n}"
306306
(selection_indices,) = np.nonzero(selection)
307307
elif selection.dtype.kind == "i":
308308
assert np.unique(selection).size == selection.size

0 commit comments

Comments
 (0)