这是indexloc提供的服务,不要输入任何密码
Skip to content

Skip printing progress_bare when verbose is False #935

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alejoe91
Copy link
Contributor

@alejoe91 alejoe91 commented May 6, 2025

No description provided.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 13 lines in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (3705cea) to head (1f02517).
Report is 61 commits behind head on main.

Files with missing lines Patch % Lines
kilosort/template_matching.py 0.00% 5 Missing ⚠️
kilosort/clustering_qr.py 0.00% 4 Missing ⚠️
kilosort/spikedetect.py 0.00% 4 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##            main    #935    +/-   ##
======================================
  Coverage   0.00%   0.00%            
======================================
  Files         33      34     +1     
  Lines       5640    5801   +161     
======================================
- Misses      5640    5801   +161     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jacobpennington
Copy link
Collaborator

This is not what the verbose option is used for, it's specifically for adding low-level debugging information to the log. The progress bar is necessary for the GUI animation. Are you just wanting an option to skip printing the progress bar updates in the log when running through API?

@alejoe91
Copy link
Contributor Author

alejoe91 commented May 6, 2025

This is not what the verbose option is used for, it's specifically for adding low-level debugging information to the log. The progress bar is necessary for the GUI animation.

Thanks @jacobpennington, I misinterpreted it then!

Are you just wanting an option to skip printing the progress bar updates in the log when running through API?

Exactly what I'm looking for

@jacobpennington
Copy link
Collaborator

Okay, thanks. This was on the todo list at some point, I'll take another look. I'd rather not add yet another option to manually disable something that shouldn't happen in the first place, if possible. I.e. the progress bar should never appear in the logs, I just hadn't figured out how to prevent that without disabling it altogether.

@alejoe91
Copy link
Contributor Author

alejoe91 commented May 6, 2025

I think that something like this might work:

show_progress = logger.isEnabledFor(logging.INFO)

tqdm(..., disable=not show_progress)

I'll give it a shot!

@jacobpennington
Copy link
Collaborator

jacobpennington commented May 13, 2025

I guess I misremembered this issue... Looking at the logs generated now, I don't see any of the tqdm progress bar information there when running Kilosort4 on its own. I do remember seeing user-posted logs that included progress bar spam, but now that I look back all of those were people who used KS4 through spikeinterface. There was also an issue for a while with a log not being generated when using spikeinterface, although it seems that was fixed at some point. Regardless, SI seems to be interfering with the logging behavior somehow.

Can you please confirm which conditions result in the log spam? I.e. running with API or GUI, with or without spikeinterface.

@alejoe91
Copy link
Contributor Author

I guess I misremembered this issue... Looking at the logs generated now, I don't see any of the tqdm progress bar information there when running Kilosort4 on its own. I do remember seeing user-posted logs that included progress bar spam, but now that I look back all of those were people who used KS4 through spikeinterface. There was also an issue for a while with a log not being generated when using spikeinterface, although it seems that was fixed at some point. Regardless, SI seems to be interfering with the logging behavior somehow.

Can you please confirm which conditions result in the log spam? I.e. running with API or GUI, with or without spikeinterface.

Hi Jakob, this is runnning through the API. Here is the recent PR interacting with the KS4 logger. SpikeInterface/spikeinterface#3866

@jacobpennington
Copy link
Collaborator

I still haven't been able to reproduce this. Unless someone can provide an example of this without using Spikeinterface, I don't see anything to change on the Kilosort end.

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