Skip to content
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

fix logger when running in a for loop #786

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

RobertoDF
Copy link
Contributor

@RobertoDF RobertoDF commented Sep 14, 2024

Hi,

Right now if I run the function run_kilosort in a for loop the logger will create a log file only in the first for loop. The logging.basicConfig() function only configures the logger once and subsequent calls to basicConfig() have no effect unless you explicitly force it to reconfigure. This is fixed by simply adding the arg force=True.

@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@jacobpennington jacobpennington merged commit bfc8bbc into MouseLand:main Sep 17, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants