Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 26, 2024
1 parent 926afdb commit cb957b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/spikeinterface/preprocessing/motion.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,9 @@ def correct_motion(
if folder is not None:
folder = Path(folder)
if overwrite:
if folder.exists():
if folder.exists():
import shutil

shutil.rmtree(folder)
else:
assert not folder.exists(), f"Folder {folder} already exists"
Expand Down

0 comments on commit cb957b8

Please sign in to comment.