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

Disable progress bar in most tests #791

Closed
yannikschaelte opened this issue Jan 11, 2022 · 1 comment · Fixed by #799
Closed

Disable progress bar in most tests #791

yannikschaelte opened this issue Jan 11, 2022 · 1 comment · Fixed by #799
Assignees

Comments

@yannikschaelte
Copy link
Member

Output tracking does not gracefully deal with line rollback apparently, and adds another line upon each update. To avoid resulting overly long logfiles, it may be preferable to disable progress bars per default / in tests.

@PaulJonasJost PaulJonasJost self-assigned this Jan 11, 2022
@dilpath
Copy link
Member

dilpath commented Jan 11, 2022

One option is the following (done before any other imports) (tqdm/tqdm#619 (comment)).

import tqdm
def nop(it, *a, **k):
    return it
tqdm.tqdm = nop

There are other options from that thread, including use of an environment variable. This would be convenient for pyPESTO users too, not just test logs. Examples:

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 a pull request may close this issue.

3 participants