mirror of
https://github.com/biopython/biopython.git
synced 2025-10-20 21:53:47 +08:00
* Handle possible non-existent attrs in clusterbuster.py In commit bc0d58b, support was added for gap and weight paramters, but since these two attributes are not guaranteed to exist by parse and read methods, an AttributeError could be raised for non-clusterbuster motifs. An attribute check was added to allow motifs lacking gap and weight to be formatted properly. Co-authored-by: Ee Shan Liau Shirley <69098782+shirleyliau@users.noreply.github.com> * Add names to CONTRIB.rst * Use try-except to handle missing attributes Co-authored-by: Ee Shan Liau Shirley <69098782+shirleyliau@users.noreply.github.com> * Avoid CB output when an attribute is None In the previous commit, the skipping mechanism was switched to try-except blocks, and the cases when an attribute is None are no longer dealt with. This patch re-introduced `if m.weight` to prevent empty export fields in such cases. Co-authored-by: Ee Shan Liau Shirley <69098782+shirleyliau@users.noreply.github.com> --------- Co-authored-by: Ee Shan Liau Shirley <69098782+shirleyliau@users.noreply.github.com>