Skip to content

Verbose to remove prints on normal behavior. - #1432

Merged
peterjc merged 3 commits into
biopython:masterfrom
lewisamarshall:master
Dec 11, 2017
Merged

peterjc merged 3 commits into
biopython:masterfrom
lewisamarshall:master

Conversation

@lewisamarshall

Copy link
Copy Markdown
Contributor

This pull request addresses issue #1064

This code allows the following behavior to be disabled by user:

  • It prints messages to the console, like "Downloading PDB structure 'XXXX'..."

This code does not alter default behavior or rely on a more complex callback-based refactor.

I'd be interested in taking on a more in-depth rewrite if there's desire for that.

I hereby agree to dual licence this and any previous contributions under both
the Biopython License Agreement AND the BSD 3-Clause License.

I am happy to be thanked by name in the NEWS.rst and
CONTRIB.rst files.

I have read the CONTRIBUTING.rst file and understand that AppVeyor and
TravisCI will be used to confirm the Biopython unit tests and flake8 style
checks pass with these changes.

@peterjc

peterjc commented Oct 30, 2017

Copy link
Copy Markdown
Member

Hi Lewis,

Thank you for working on this. Unfortunately there are merge conflicts - you seem to have been working from commit 05d43bf which is from June 2016, over a year ago.

Looking over the history the changes since have been fairly minor style issues, so you shouldn't have too much trouble updating your branch:

https://github.com/biopython/biopython/commits/master/Bio/PDB/PDBList.py

(If you are not comfortable doing this in git, one of us could try updating this if you prefer?)

The proposed changes however do look sensible, @dadoskawina what do you think as the last person to make major changes to the PDB downloading code? Thanks!

@codecov

codecov Bot commented Oct 31, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #1432 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1432      +/-   ##
==========================================
- Coverage    84.8%   84.78%   -0.03%     
==========================================
  Files         321      321              
  Lines       49316    49323       +7     
==========================================
- Hits        41823    41819       -4     
- Misses       7493     7504      +11
Impacted Files Coverage Δ
Bio/PDB/PDBList.py 16.66% <0%> (-0.79%) ⬇️
Bio/GA/Evolver.py 54.54% <0%> (-18.19%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cbbf861...8cc69fe. Read the comment docs.

@lewisamarshall

Copy link
Copy Markdown
Contributor Author

Sorry about that. I forked a while ago to work on a personal project, and recently realized I didn't send a PR. Should be fixed now.

@peterjc

peterjc commented Oct 31, 2017

Copy link
Copy Markdown
Member

The updated branch looks good - would you like to add yourself to the NEWS.rst and CONTRIB.rst files? Note we use a simple alphabetic sorting.

@peterjc

peterjc commented Dec 11, 2017

Copy link
Copy Markdown
Member

I rebased this to solve the merge conflict, and added your name to the NEWS and CONTRIB files. If the automated tests still pass, I will apply the updated pull request today...

@peterjc
peterjc merged commit 7fc46b4 into biopython:master Dec 11, 2017
peterjc added a commit to peterjc/biopython that referenced this pull request Aug 30, 2019
Original author Kristian Rother and the contributors since as tracked
by version control have agreed:

 - Carlos Pena (@carlosp420)
   biopython#898 (comment)
 - Christian Brueffer (@cbrueffer)
   biopython#898 (comment)
 - Connor McCoy (@cmccoy)
   biopython#898 (comment)
 - David Cain (@DavidCain)
   biopython#898 (comment)
 - Eric Talevich (@etal)
   biopython#898 (comment)
 - Hector Martinez (@hectormartinezdev)
   biopython#2212 (comment)
 - Jacek Śmietański (@dadoskawina)
   biopython#898 (comment)
 - Joe Greener (@jgreener64)
   biopython#1393
 - Kristian Rother (@krother)
   biopython#898 (comment)
 - Lewis A. Marshall (@lewisamarshall)
   biopython#1432
 - Michael Hoffman (@michaelmhoffman)
   biopython#898 (comment)
 - Michiel de Hoon (@mdehoon)
   biopython#898 (comment)
 - @morrme
   biopython#1172 (comment)
 - Peter Cock (@peterjc)
   biopython#898 (comment)
 - Sergei Lebedev (@superbobry)
   biopython#898 (comment)
 - Sergio Valqui (@svalqui)
   biopython#1749
 - Thomas Hamelryck (CVS username nisse)
   https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
 - Travis Wrightsman (@twrightsman)
   biopython#898 (comment)
 - Wayne Decatur (@fomightez)
   biopython#898 (comment)
peterjc added a commit that referenced this pull request Nov 4, 2019
Original author Kristian Rother and the contributors since as tracked
by version control have agreed:

 - Carlos Pena (@carlosp420)
   #898 (comment)
 - Christian Brueffer (@cbrueffer)
   #898 (comment)
 - Connor McCoy (@cmccoy)
   #898 (comment)
 - David Cain (@DavidCain)
   #898 (comment)
 - Eric Talevich (@etal)
   #898 (comment)
 - Hector Martinez (@hectormartinezdev)
   #2212 (comment)
 - Jacek Śmietański (@dadoskawina)
   #898 (comment)
 - Joe Greener (@jgreener64)
   #1393
 - Kristian Rother (@krother)
   #898 (comment)
 - Lewis A. Marshall (@lewisamarshall)
   #1432
 - Michael Hoffman (@michaelmhoffman)
   #898 (comment)
 - Michiel de Hoon (@mdehoon)
   #898 (comment)
 - @morrme
   #1172 (comment)
 - Peter Cock (@peterjc)
   #898 (comment)
 - Sergei Lebedev (@superbobry)
   #898 (comment)
 - Sergio Valqui (@svalqui)
   #1749
 - Thomas Hamelryck (CVS username nisse)
   https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
 - Travis Wrightsman (@twrightsman)
   #898 (comment)
 - Wayne Decatur (@fomightez)
   #898 (comment)
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