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

Python function shared_utils.mojo_predict_csv should suppress the genmodel warnnings when verbose parameter is False #16015

Closed
rafaelreuber opened this issue Jan 12, 2024 · 0 comments · Fixed by #16031
Assignees
Milestone

Comments

@rafaelreuber
Copy link
Contributor

I would be nice if, when the verbose parameter is False, suppress genmodel warnnings on the shared_utils.mojo_predict_csv function

All you need to do is send the parameter stdout=subprocess.DEVNULL for the subprocess.check_call call

 stdout = subprocess.DEVNULL
 if verbose:
     stdout = None

 # invoke the command
 subprocess.check_call(cmd, shell=False, stdout=stdout)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants