-
Notifications
You must be signed in to change notification settings - Fork 666
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
Alias bfactor to tempfactor #3345
Conversation
Hello @lilyminium! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2021-08-01 17:02:38 UTC |
Codecov Report
@@ Coverage Diff @@
## develop #3345 +/- ##
========================================
Coverage 93.62% 93.62%
========================================
Files 176 176
Lines 22835 22848 +13
Branches 3224 3224
========================================
+ Hits 21379 21392 +13
Misses 1405 1405
Partials 51 51
Continue to review full report at Codecov.
|
766929f
to
b8e7f7c
Compare
I am a bit busy today and might not get to it immediately, sorry.
… On Jun 1, 2021, at 6:22 PM, Lily Wang ***@***.***> wrote:
@lilyminium <https://github.com/lilyminium> requested your review on: #3345 <#3345> Alias bfactor to tempfactor.
|
No rush at all, take your time :)
… On 2 Jun 2021, at 1:27 pm, Oliver Beckstein ***@***.***> wrote:
I am a bit busy today and might not get to it immediately, sorry.
> On Jun 1, 2021, at 6:22 PM, Lily Wang ***@***.***> wrote:
>
>
> @lilyminium <https://github.com/lilyminium> requested your review on: #3345 <#3345> Alias bfactor to tempfactor.
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#3345 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AHNMOXMT2BI766NTM4HHXRDTQ2H3RANCNFSM453T5CEA>.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of small comments.
@@ -265,6 +265,25 @@ def _attach_transplant_stubs(attribute_name, topology_attribute_class): | |||
setattr(dest_class, method_name, stub) | |||
|
|||
|
|||
# TODO: remove bfactors in 3.0 | |||
BFACTOR_WARNING = ("The bfactor topology attribute is only " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be documented somewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we really document all the topology attributes anywhere. I added it as a docstring to the bfactor/s properties?
Edit: and I'll update the user guide
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that sounds reasonable, for some reason I thought we had a big table somewhere, but maybe I'm getting confused with something else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in __init__.py
, but I think that might firstly be woefully out of date, and secondly never mentioned bfactors to start off with :p
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry it took so long to re-review.
Couple of questions and some docs changes for pdb/mmtf
@@ -265,6 +265,25 @@ def _attach_transplant_stubs(attribute_name, topology_attribute_class): | |||
setattr(dest_class, method_name, stub) | |||
|
|||
|
|||
# TODO: remove bfactors in 3.0 | |||
BFACTOR_WARNING = ("The bfactor topology attribute is only " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that sounds reasonable, for some reason I thought we had a big table somewhere, but maybe I'm getting confused with something else.
@lilyminium if you can give a yea/nay to my review comments we can aim to merge this. |
173f09c
to
89072af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm - please do merge whenever
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor doc issues that should be corrected, please
Co-authored-by: Irfan Alibay <[email protected]>
Co-authored-by: Irfan Alibay <[email protected]>
89072af
to
b82ba6e
Compare
@orbeckst is this good to merge now? |
🎉 one step closer to a 2.0 release! |
Fixes #1901
Changes made in this Pull Request:
bfactor
totempfactor
with some abstract-ish machinery (aliases) in case we do this again in the future.I forget, did we want to warn people that this attribute now has 2 names?
I kept most of the mentions of
bfactor
in the tests the same to make sure we're not altering behaviour.PR Checklist