-
Notifications
You must be signed in to change notification settings - Fork 278
sorting in for loop logger bug #898
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
sorting in for loop logger bug #898
Conversation
|
Please indicate which version of Kilosort4 you're using, and provide some sample code that is causing the problem. A similar (or possibly the same) problem was already fixed with the last update or the one before. |
|
I am on version 4.0.30. Fundamentally I use My understanding is that the close_logger func closes the handlers but doesn't remove them from the logger. So the handlers are still attached to the logger. |
|
run_kilosort happens inside spikesort func here |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #898 +/- ##
======================================
Coverage 0.00% 0.00%
======================================
Files 32 33 +1
Lines 4649 5640 +991
======================================
- Misses 4649 5640 +991 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Doesn't work correctly without adding .copy(), since items are removed from the list that is being looped over from inside the loop.
Hi,
I am sorting multiple sessions in a for loop and I run in a problem with the log files. The file handles accumulate within every for loop and all the log files gets overwritten at every loop, moreover they can´t be deleted.
This line solves the problem.
Cheers!