-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Deprecate record.database_letters, record.query_letters #1000
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
Comments
I would approach this by turning the attributes into read only properties, and then adding the warning to the getter functions. See e.g. e3cf12a which was how the See also http://biopython.org/wiki/Deprecation_policy i.e. Define read only property for |
Copying my comments from the old RedMine issue:
And:
And then,
|
Probably yes, I would think to class |
@peterjc I'm trying to understand what should be done here and have read through parts of the comments of the closed PR, but I get lost way earlier.
and in a previous comment:
To my understanding (bear with me, I'm YAPYN - yet another Python newbie) Bio.Record.Record is a module. How can it inherit from Header, DatabaseReport and Parameters? And while a deprecation in any of Header, DatabaseReport and Parameters is possible I don't see a way to return in one class the value of another class without any inheritance hierachy which I can't make out here. |
PEP8 style says use lower case for modules, and title case for classes - to help avoid this confusion. This part of Biopython pre-dates that convention. Bio.Blast.Record is a module, specifically this file: https://github.com/biopython/biopython/blob/master/Bio/Blast/Record.py Within that is a class Also, a few |
Do you mean there should be a line starting with |
No, I didn't double check the code before replying - we were most likely talking about the |
Hey, I'm looking at this issue, so you want to remove it from https://github.com/biopython/biopython/blob/master/Bio/Blast/NCBIXML.py#L786, and in the DatabaseRecords you want a property that will mirror the removed database_letters? Is there anything else that I need to do here? |
Hi, I'm new to open-source contributions. Can I work on this issue |
Note @uxritu has written the same comment on multiple issues today - which I am initially willing to assuming is merely over enthusiasm. -- A belated answer to @valentin994, I don't recall the details of this code well enough to say without actually trying it. i.e. Add the deprecation warnings, run the test suite including documentation, and see what needs updating and/or to have the new warning silenced until the code and its test is removed. |
From redmine XML Blast parser: miscellaneous bug fixes and cleanup
Most of the cleanup, bug fixes were done. The last comment was:
There is a TODO in the code regarding this.
@peterjc last comment
The text was updated successfully, but these errors were encountered: