-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding option to overwrite while doing correct_motion and saving to a folder #3088
Conversation
@@ -204,6 +204,7 @@ def correct_motion( | |||
recording, | |||
preset="nonrigid_accurate", | |||
folder=None, | |||
overwrite=False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not consistent with some otherplace in spikeinterface.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we use it at many places! Save, analyzers, etc..
Only in run sorter this is different...
@yger why did you remove the code that does the overwriting? |
aie, mistake then, i'll check |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
I've mixed up some git history I guess, so mayeb the best is to delete this PR and start a new one? I don't know how to properly revert, there are way too many changes in my commit that are not mine here |
the diff in files look really weird! @yger I would suggest making a clean PR without messing up with git history ;) |
Now this has been fixed and the diff is legit. Just squash everything |
Currently, when doing motion correction, if saving to a folder we can not overwrite and an error is launched only at then end, after motion correction has been made. This PR adds the option to overwrite the motion folder