Skip to content

Commit

Permalink
pep8/pylint cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezra Peisach committed Jul 7, 2024
1 parent 2b7f10b commit 0ea22cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions wwpdb/apps/seqmodule/util/FetchReferenceSequenceUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ def fetchReferenceSequenceWithSeqMatch(self, dbName, dbAccession, dbCode, taxId,
if dbCode:
self.__accCode, self.__refInfoD = self.__fetchSeqUtil.getRefInfo(dbName, dbCode, "", 0, 0)
if (not self.__refInfoD) or ("sequence" not in self.__refInfoD) or (not self.__refInfoD["sequence"]):
return False, {}
return False, False, {}
#
else:
return False, {}
return False, False, {}
#
#
# Removed per ticket DAOTHER-7903
Expand Down Expand Up @@ -219,12 +219,12 @@ def runSeqAlignment(self, refSeq, authSeq, seqNumBeg, mutationList, mutationMap)
blockList.append((start, end))
#
if not blockList:
return False, {}
return False, False, {}
#
start = blockList[0][0]
end = blockList[-1][1]
if (start < 0) or ((2 * (end - start + 1)) < len(authSeqList)):
return False, {}
return False, False, {}
#
identity = 0
mutation = 0
Expand Down
4 changes: 2 additions & 2 deletions wwpdb/apps/seqmodule/util/LocalBlastSearchUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ def __runBlastSearch(self):
#
#
#
autoMatchStatus, skipBlastSearch, authHitList = self.__fetchAuthProvidedRefSequence(searchSequence, seqNumBeg, seqNumEnd, str(partNum), \
taxId, mutationList, len(self.__entityD["PART_LIST"]))
autoMatchStatus, skipBlastSearch, authHitList = self.__fetchAuthProvidedRefSequence(searchSequence, seqNumBeg, seqNumEnd, str(partNum),
taxId, mutationList, len(self.__entityD["PART_LIST"]))
if not autoMatchStatus:
foundPerfectMatch = False
#
Expand Down

0 comments on commit 0ea22cd

Please sign in to comment.