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

Added functionality to give a description in the progress bar #401

Merged
merged 7 commits into from
Aug 6, 2021
Merged

Added functionality to give a description in the progress bar #401

merged 7 commits into from
Aug 6, 2021

Conversation

arm61
Copy link
Contributor

@arm61 arm61 commented Aug 6, 2021

tqdm allows a description to be given to the progress bar, I find this is helpful in packages where multiple different progress bars are used. This PR allows a description to be added to a emcee progress bar based on a string passed to to the sample function.

@dfm
Copy link
Owner

dfm commented Aug 6, 2021

Thanks! What about adding a progress_kwargs dictionary or something to allow other keyword arguments beyond just desc?

@arm61
Copy link
Contributor Author

arm61 commented Aug 6, 2021

That is a cleaner way. I have put it in like this, happy to know your thoughts.

@dfm dfm merged commit bf0964a into dfm:main Aug 6, 2021
@dfm
Copy link
Owner

dfm commented Aug 6, 2021

Looks good to me! Thanks!!

@arm61
Copy link
Contributor Author

arm61 commented Aug 18, 2021

@dfm could I be a pest and ask for a pypi release with this feature? I can't get my package onto pypi currently as it requires this feature and pypi doesn't like direct dependencies to git repos apparently.

@dfm
Copy link
Owner

dfm commented Aug 23, 2021

Absolutely! I'll do that now.

@dfm
Copy link
Owner

dfm commented Aug 23, 2021

v3.1.1 should be on PyPI shortly (as soon as this finishes running)

@arm61
Copy link
Contributor Author

arm61 commented Aug 23, 2021

Amazing! Thanks for your help 🙏🏻

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.

2 participants