Skip to content

Commit e57ce96

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

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/probeinterface/probe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ def set_contacts(
383383
self.set_contact_ids(contact_ids)
384384

385385
if shank_ids is None:
386-
# self._shank_ids = np.zeros(n, dtype=str)
386+
# self._shank_ids = np.zeros(n, dtype=str)
387387
self._shank_ids = None
388388
else:
389389
self._shank_ids = np.asarray(shank_ids).astype(str)
@@ -1043,7 +1043,7 @@ def to_numpy(self, complete: bool = False) -> np.array:
10431043

10441044
if self._shank_ids is not None:
10451045
dtype += [("shank_ids", "U64")]
1046-
1046+
10471047
dtype += [("contact_ids", "U64")]
10481048

10491049
if self._contact_sides is not None:

tests/test_io/test_3brain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ def test_3brain():
4646

4747

4848
if __name__ == "__main__":
49-
test_3brain()
49+
test_3brain()

tests/test_io/test_io.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,9 @@ def test_prb(tmp_path):
209209

210210
if __name__ == "__main__":
211211
import tempfile
212+
212213
tmp_path = Path(tempfile.mkdtemp())
213-
214+
214215
# test_probeinterface_format(tmp_path)
215216
test_BIDS_format(tmp_path)
216217
# test_BIDS_format_empty()

tests/test_probe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ def test_double_side_probe():
230230

231231
if __name__ == "__main__":
232232
import tempfile
233-
tmp_path = Path(tempfile.mkdtemp())
234233

234+
tmp_path = Path(tempfile.mkdtemp())
235235

236236
test_probe()
237237
test_save_to_zarr(tmp_path)

0 commit comments

Comments
 (0)