Deprecate record.database_letters and record.query_letters - #5314
mayuriphad wants to merge 2 commits into
Conversation
|
Please read https://github.com/biopython/biopython/blob/master/CONTRIBUTING.rst and especially the clarification in #5229 that AI tools should not be used on the 'good first issue' items (with broader policy under discussion on #5241). You have not used the pull request template either... [Does anyone know which settings Copilot is referring to as I didn't setup automatic reviews?] |
|
Note that there is a newer parser for Blast XML files in |
|
Apologies for missing the pull request template! I've updated the description to include it. I've also noted the policy regarding 'good first issue' items and AI tools for future reference. Thank you for pointing that out! |
|
If you follow the CONTRIBUTING instructions to run |
| def query_letters(self): | ||
| warnings.warn( | ||
| "query_letters is deprecated; please use query_length instead.", | ||
| BiopythonDeprecationWarning, |
There was a problem hiding this comment.
You need to add from Bio import BiopythonDeprecationWarning near the top of the file (where BiopythonParserWarning is already being imported).
There was a problem hiding this comment.
Import this once at the top of the file please, about line 37 (where BiopythonParserWarning is already being imported).
|
Could you confirm this was not done with AI please? |
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, have runpre-commitlocally, and understand that continuous integration checks will be used to
confirm the Biopython unit tests and style checks 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.)
Fixes #1000. Replaces internal usage with query_length and database_length, and adds deprecation properties for backward compatibility.