From 300e8dfca993a161047be6ecee32e2764c51bd0f Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Sun, 5 May 2024 19:02:06 -0400 Subject: [PATCH] PEP8 cleanup --- .../apps/entity_transform/depict/PrdSummaryDepict.py | 12 ++++++------ wwpdb/apps/entity_transform/depict/StrFormDepict.py | 2 +- .../apps/entity_transform/depict/StrSummaryDepict.py | 2 +- wwpdb/apps/entity_transform/update/CombineCoord.py | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/wwpdb/apps/entity_transform/depict/PrdSummaryDepict.py b/wwpdb/apps/entity_transform/depict/PrdSummaryDepict.py index 6facf3f..4a7b892 100644 --- a/wwpdb/apps/entity_transform/depict/PrdSummaryDepict.py +++ b/wwpdb/apps/entity_transform/depict/PrdSummaryDepict.py @@ -61,25 +61,25 @@ def DoRenderSummaryPage(self, imageFlag=True): # if self.__splitPolymerResidueFlag: text += '
  • ' \ - + 'Split modified residue to standard residue + modification in polymer
  • \n' + + 'Split modified residue to standard residue + modification in polymer \n' # if self.__combResidueFlag: text += '
  • ' \ - + 'Merge standard amino acid residue + modification to modified amino acid residue in polymer
  • \n' + + 'Merge standard amino acid residue + modification to modified amino acid residue in polymer \n' # if self.__matchResultFlag: text += '
  • View All Search Result(s)
  • \n' + + '" target="_blank"> View All Search Result(s) \n' # if self.__graphmatchResultFlag: text += '
  • Update Coordinate File with Match Result(s)
  • \n' + + '&type=match" target="_blank"> Update Coordinate File with Match Result(s) \n' # text += '
  • Update Coordinate File with Input IDs
  • \n' + + '&type=input" target="_blank"> Update Coordinate File with Input IDs \n' # text += '
  • ' \ - + 'Split non standard residue in polymer
  • \n' + + 'Split non standard residue in polymer \n' # text += '
  • Download Files
  • \n' # diff --git a/wwpdb/apps/entity_transform/depict/StrFormDepict.py b/wwpdb/apps/entity_transform/depict/StrFormDepict.py index 88ecefd..8b83a63 100644 --- a/wwpdb/apps/entity_transform/depict/StrFormDepict.py +++ b/wwpdb/apps/entity_transform/depict/StrFormDepict.py @@ -108,7 +108,7 @@ def __processSplitWithChopper(self, myD): ciffile = self._identifier + '_model_P1.cif' residueId = str(self._reqObj.getValue('split_polymer_residue')) if not residueId: - residueId = '_'.join([str(self._reqObj.getValue('chain_id')), str(self._reqObj.getValue('res_name')), \ + residueId = '_'.join([str(self._reqObj.getValue('chain_id')), str(self._reqObj.getValue('res_name')), str(self._reqObj.getValue('res_num')), str(self._reqObj.getValue('ins_code'))]) # combObj = CombineCoord(reqObj=self._reqObj, instList=[residueId], cifFile=ciffile, verbose=self._verbose, log=self._lfh) diff --git a/wwpdb/apps/entity_transform/depict/StrSummaryDepict.py b/wwpdb/apps/entity_transform/depict/StrSummaryDepict.py index 4d18db1..22bf5c9 100644 --- a/wwpdb/apps/entity_transform/depict/StrSummaryDepict.py +++ b/wwpdb/apps/entity_transform/depict/StrSummaryDepict.py @@ -228,7 +228,7 @@ def __depictionLigand(self): text = '\n' text += '\n' text += '\n' + + "'ligand_select_all'" + ');" />\n' text += '\n' text += '\n' text += '\n' diff --git a/wwpdb/apps/entity_transform/update/CombineCoord.py b/wwpdb/apps/entity_transform/update/CombineCoord.py index 77a05ff..bc9c924 100644 --- a/wwpdb/apps/entity_transform/update/CombineCoord.py +++ b/wwpdb/apps/entity_transform/update/CombineCoord.py @@ -76,7 +76,7 @@ def processWithCopy(self, submitValue=''): if self.__submitValue and (len(self.__instList) == 1) and self.__instList[0]: pickleFilePath = os.path.join(self.__instancePath, self.__instId + ".pkl") if os.access(pickleFilePath, os.F_OK): - os.remove(pickleFilePath) + os.remove(pickleFilePath) # pickleD = {} pickleD['residue'] = self.__instList[0]
    Selection/
    User Defined Group ID
    3 Letter CodeChain IDResNum