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 progress bar keywords #4085

Merged

Conversation

marinegor
Copy link
Contributor

@marinegor marinegor commented Mar 21, 2023

Fixes #3190

Changes made in this Pull Request:

  • add keyword-only pbar_kwargs argument to the AnalysisBase.run method

This presumably fixes the comments raised in this PR which was closed earlier, since the keyword-only mechanism prevents capturing other arguments during dictionary unpacking.

PR Checklist

  • Tests?
  • Docs?
  • CHANGELOG updated?
  • Issue raised/referenced?

📚 Documentation preview 📚: https://readthedocs-preview--4085.org.readthedocs.build/en/4085/

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello there first time contributor! Welcome to the MDAnalysis community! We ask that all contributors abide by our Code of Conduct and that first time contributors introduce themselves on the developer mailing list so we can get to know you. You can learn more about participating here. Please also add yourself to package/AUTHORS as part of this PR.

@codecov
Copy link

codecov bot commented Mar 21, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (75f0fb9) 93.58% compared to head (cd26ce5) 93.58%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4085   +/-   ##
========================================
  Coverage    93.58%   93.58%           
========================================
  Files          192      192           
  Lines        25133    25133           
  Branches      4056     4056           
========================================
  Hits         23520    23520           
  Misses        1093     1093           
  Partials       520      520           
Impacted Files Coverage Δ
package/MDAnalysis/analysis/base.py 96.94% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@marinegor
Copy link
Contributor Author

Hi everyone, I'm not entirely sure what to do with the failing tests -- afais all of them fail with:

Error: There was an error fetching the storage URL during POST: 500 - Unknown error, please try again later

error during codecov report upload, so presumably issue is not with my code. Locally all tests run successfully.

@hmacdope
Copy link
Member

@marinegor yes not your fault, codecov is super flaky. Please fix conflicts and then ill review :)

@marinegor
Copy link
Contributor Author

Hey @hmacdope I wonder what would be the best way to confidently resolve the "package/AUTHORS" merge conflict -- I pulled upstream & resolved conflict, but since new contributions keep coming to the develop, it keeps happening🤔

@hmacdope
Copy link
Member

You will have to update your PR every time develop changes, unfortunately thats just a byproduct of how distributed code development works.

@marinegor
Copy link
Contributor Author

marinegor commented Mar 24, 2023 via email

Copy link
Member

@hmacdope hmacdope left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One quick change, but other than that looks good. You will need to add a CHANGELOG entry also and introduce yourself on the developer/gsoc mailing list if you havnt already.

package/MDAnalysis/analysis/base.py Outdated Show resolved Hide resolved
package/MDAnalysis/analysis/base.py Outdated Show resolved Hide resolved
package/MDAnalysis/analysis/base.py Outdated Show resolved Hide resolved
testsuite/MDAnalysisTests/analysis/test_base.py Outdated Show resolved Hide resolved
testsuite/MDAnalysisTests/analysis/test_base.py Outdated Show resolved Hide resolved
@yuxuanzhuang
Copy link
Contributor

Sorry if a few comments are outdated already. I didn't realize I need to submit my review. I thought "pending" means pending for feedback :⁠-⁠)

@marinegor marinegor requested review from yuxuanzhuang and hmacdope and removed request for yuxuanzhuang and hmacdope March 26, 2023 17:51
@marinegor
Copy link
Contributor Author

I apologize for the little mess with requesting code -- hope you didn't get much annoying notifications about it :)

Copy link
Contributor

@yuxuanzhuang yuxuanzhuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@github-actions
Copy link

github-actions bot commented Mar 28, 2023

Linter Bot Results:

Hi @marinegor! Thanks for making this PR. We linted your code and found the following:

There are currently no issues detected! 🎉

Copy link
Member

@hmacdope hmacdope left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hmacdope hmacdope merged commit 5b01ed8 into MDAnalysis:develop Mar 29, 2023
IAlibay added a commit that referenced this pull request Dec 17, 2023
orbeckst added a commit that referenced this pull request Dec 21, 2023
Update of AUTHORS and CHANGELOG with inferred author contributions.

*  Removed duplicate mattwthompson in 0.20.0 changelog entry.: mattwthompson was placed twice by accident, this removes this duplication.

* Addition of missing authors.

   An retrospective analysis of the authors found via `git shortlog -s -n --email --branches="develop"` found several commits by authors which were not present in the `AUTHORS.md` file.

    - Zhenbo Li: commited via PR: Started tests for gnm. #803 and Make Travis run tests on OSX. #771,
    - Jenna M. Swarthout via PR Update CoC according to suggestions from current CoC committee #4289 and Point to new reporting form link (owned by [email protected]) #4298,
    - Bradley Dice via PR   Fix GSD Windows compatibility #2384 ,
    - David Minh via PR #2668

   There seemed to be no indications in the above mentioned PRs that the author did not want to be in the authors file, it looks like it was just forgotten.

* Addition of missing entries from the changelog

   Continued cross referencing of the git shortlog output but also accounting for the changelog identified several individuals that had not been included in the changelog entries for the release they contributed under. They were added to the relevant entry of the changelog based on the merge commit date.

   Please note that for Tone Bengsten, we a) had no github handle (so they were assigned @tbengtsen), and b) no specific commit. Given we know that this individual was including alongside the encore merge, they were assigned to the 0.16.0 release.

* Update CHANGELOG
* PR #1218
* PR #1284 and #1408
* PR #4109
* based on git history
* PRs #803 and #771 (author addition, changelog addition)
* PR #2255 and #2221
* PR #1225
* PR #4289 and #4298
* PR #4031
* PR #4085
* PR #3635
* PR #2356
* PR #2559
* No GH handle - Encore author addition @tbengtsen
* PR #4184
* PR #2614
* PR #2219
* PR #2384
* PR #2668
* Add missing entry for Jenna

Thanks to @fiona-naughton for helping out with digging into this data :)

Co-authored-by: Fiona Naughton <[email protected]>
Co-authored-by: Oliver Beckstein <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow specification of ProgressBar keyword arguments in the AnalysisBase run method
4 participants