-
Notifications
You must be signed in to change notification settings - Fork 663
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
verbose not set in analysis.AnalysisBase.run #2504
Comments
@lilyminium thanks for pointing out this inconsistency.
I just re-read my comments namely #2206 (comment) and as far as I can tell, I mis-remembered: |
@lilyminium , @orbeckst I would like to work on the issue |
Please go ahead @Purva-Chaudhari! Put up a pull request and link this issue, and it will get reviewed. |
Hi! @lilyminium @orbeckst |
@lilyminium From what I have understood(ran example with run(verbose=True)),in the run method in AnalysisBase() self_verbose is not getting overridden. Referring to issue #2206 I Raised deprecation warning if step/start/stop is none and made their scope private. Is it now expected that the self_verbose in run to override the default . |
If I am mistaken in understanding the objective please do let me know |
@kpiyush04 thanks for looking at this, but as @Purva-Chaudhari has already started working on the issue, their pull request will get prioritised. Perhaps you could work on something else, e.g. #2599 was recently opened. @Purva-Chaudhari Yep, that sounds about right -- as @orbeckst clarified above, |
Just to add: @Purva-Chaudhari please open a PR that references this issue in a timely manner. Just saying "I want to do this" is not enough – we'll give you some leeway but we expect that you follow up within a day or so. |
@orbeckst Sure will follow that |
@lilyminium could you please review the PR, I am a bit new to open source contribution. Hope i made it in a correct way. If not please do let me know and also regarding the changes I made, are they correct or what should I improve in the code, |
@Purva-Chaudhari Thanks for having a go at this, welcome to open source! I see that you opened a PR in your own fork of MDAnalysis -- however, to merge code into this code-base, you need to open one here. The user guide lays out the steps of how to contribute to MDAnalysis, including adding and writing tests. You have also commented which part of the code you would like to change, but you should actually make changes to the code so that tests can be run on it to see if it works. In terms of your suggested change -- it's not quite what we were looking for. The line Please ping me or another dev for a proper review when you open a PR into this repository :-) |
* Fixes #928 * Fixes #2504 * Added the ProgressBar class which inherits the tqdm.auto.tqdm object. - For now, the disable keyword takes precedence over verbose, i.e. if both are set to True the progress bar won't show. Setting disable=True will disable the progress bar as expected. Setting verbose=False will disable the progress bar. - Automatically detect which version of tqdm to use (console or notebook): If run from a jupyter notebook or jupyter lab, will use the tqdm.notebook.tqdm class, else (ipython, shell, or anything else) will use the default tqdm.tqdm class * add tqdm to dependencies * Deprecate ProgressMeter through warning and text * Replace ProgressMeter with ProgressBar everywhere in MDAnalysis * add tests (for #928 and #2504) * update CHANGELOG and AUTHORS
Expected behavior
From #1463, I think that
AnalysisBase.run(verbose=True)
is supposed to override the existingself._verbose
.From #2206, it seems that(For what it's worth, I think the progress meter is cute.)verbose
is supposed to be deprecated, but there are no deprecation warnings about it.EDIT (@orbeckst): Analysis classes should be able to take the
verbose
kwarg for both the__init__()
constructor and therun()
method. The value give forrun()
should override the constructor value whilerun()
is executing, as described in #1463 .Actual behavior
Nothing happens.
Code to reproduce the behavior
mdanalysis/package/MDAnalysis/analysis/base.py
Line 187 in 9d5520c
Nothing's done with
verbose
._setup_frames
defaults to False.mdanalysis/package/MDAnalysis/analysis/base.py
Line 149 in 9d5520c
Currently version of MDAnalysis
python -c "import MDAnalysis as mda; print(mda.__version__)"
) 0.20.1python -V
)? 3.7The text was updated successfully, but these errors were encountered: