Repository navigation
Adding missing public docstrings to Bio.Phylo, Issue 1203 - #1868
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1868 +/- ##
==========================================
+ Coverage 85.47% 85.48% +<.01%
==========================================
Files 302 302
Lines 49425 49434 +9
==========================================
+ Hits 42248 42258 +10
+ Misses 7177 7176 -1
Continue to review full report at Codecov.
|
| # Shortcuts for list attributes that are usually only 1 item | ||
| # NB: Duplicated from Phylogeny class | ||
| def _get_confidence(self): | ||
| """Return confident values (PRIVATE).""" |
| def __rdivmod__(self, other): | ||
| """Return quotient and remainder. | ||
|
|
||
| of dividing and reversing the values of two Confidence objects. |
There was a problem hiding this comment.
This isn't a self-contained sentence, and I'm unclear on your meaning.
| return divmod(other, self.value) | ||
|
|
||
| def __pow__(self, other, modulo=None): | ||
| """Return the value of Confident object raised at power of. |
There was a problem hiding this comment.
This does not make sense (unless you include the rest of the docstring). How about:
"""Return value of confidence object raised to the given power."""
Also, typo: Confident object.
| return pow(self.value, other) | ||
|
|
||
| def __rpow__(self, other): | ||
| """Return the value of other Confident object raised at power of. |
There was a problem hiding this comment.
This doesn't make sense either, see __pow__ comment.
| if self.value: | ||
| return self.value | ||
| """Initialize the class.""" | ||
| """Initialize the class.""" |
There was a problem hiding this comment.
Those look like an accidental paste - well spotted. I wonder if there is a flake8 setting to report this kind of thing?
| return taxonomy | ||
|
|
||
| def other(self, elem, namespace, localtag): | ||
| """Set non-phyloXML element.""" |
There was a problem hiding this comment.
Is "set" the right word here? In the context of Python properties that verb is used to assign a new value.
(Same comment applies to the following methods too)
|
@peterjc , Thank you for the feedback, I think is better now, what do you think. |
|
What do you think @etal? Is this ready to merge? |
|
Looks like Eric has been too busy - I'm going to merge this anyway as I think it is an good improvement, even if with Eric's help we could make this even better. |
|
Thank you @svalqui 👍 |
This pull request addresses issue #1203
I hereby agree to dual licence this and any previous contributions under both
the Biopython License Agreement AND the BSD 3-Clause License.
I have read the
CONTRIBUTING.rstfile and understand that AppVeyor andTravisCI will be used to confirm the Biopython unit tests and
flake8stylechecks pass with these changes.
I have added my name to the alphabetical contributors listings in the files
NEWS.rstandCONTRIB.rstas part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)