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

Suppress pystan output #10

Closed
bmmalone opened this issue Jul 2, 2016 · 4 comments
Closed

Suppress pystan output #10

bmmalone opened this issue Jul 2, 2016 · 4 comments
Assignees
Labels

Comments

@bmmalone
Copy link
Contributor

bmmalone commented Jul 2, 2016

PyStan outputs information about sampling times for each call to the sampler. This output is not useful for this project.

By default, it is difficult to suppress this output. This thread has some details: https://groups.google.com/forum/#!topic/stan-users/Uel-8jy-Lrc

refresh=-1 and n_jobs=1 are already used.

@bmmalone bmmalone added the bug label Jul 2, 2016
@bmmalone bmmalone self-assigned this Jul 2, 2016
@bmmalone
Copy link
Contributor Author

bmmalone commented Nov 1, 2017

This exact issue was also raised in facebook/prophet#223. There, randlet provided a context manager which suppresses pystan output. I pushed his solution in the pymisc repo. It is already being used in btea and just needs to be added here.

@eboileau
Copy link
Contributor

I've added this in both estimates_orf_bayes_factors and riboutils.estimate_metagene_profile_bayes_factors. However, this is currently only in dev for pymisc, I'm not sure how you want to handle this. This is not a problem now, but will have to be sorted for a next release of rp-bp and riboseq-utils, otherwise the class won't be immediately available.

@bmmalone
Copy link
Contributor Author

I will soon (hopefully this weekend) push a new version of pymisc which includes the context manager in the master branch. I'll let you know once I do that.

@eboileau
Copy link
Contributor

Implemented in latest patch version 1.1.12. Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants