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

Add option to disable the progress bar #62

Open
KevinCCucumber opened this issue Dec 18, 2024 · 1 comment
Open

Add option to disable the progress bar #62

KevinCCucumber opened this issue Dec 18, 2024 · 1 comment

Comments

@KevinCCucumber
Copy link

KevinCCucumber commented Dec 18, 2024

When the progress bar is active, all LabView Projects crash, because LabView does not support streaming in its CMD/Powershell module.
In order to fix this for all LabView projects, I would request to change the following line in the parse method of the A2L class:

self.progress_bar = Progress(*progress_columns)

And add a disabled flag to the method, so that it looks like this:

def parse(
        self, file_name: str, encoding: str = "latin-1", in_memory: bool = False, local: bool = False, remove_existing: bool = False, disable=False
    ):


    ...
    ... 


    self.progress_bar = Progress(*progress_columns, disable=disable)

This would assist me in working with LabView projects and still get the latest updates of this package

@christoph2
Copy link
Owner

Why the same issue again?

Just use loglevel critical and there is no progress bar.

from pya2l import DB

db = DB()
session = db.import_a2l("ASAP2_Demo_V161.a2l", loglevel="critical")

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

No branches or pull requests

2 participants