Skip to content

Commit

Permalink
PEP8 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezra Peisach committed May 5, 2024
1 parent 029361d commit 300e8df
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions wwpdb/apps/entity_transform/depict/PrdSummaryDepict.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,25 +61,25 @@ def DoRenderSummaryPage(self, imageFlag=True):
#
if self.__splitPolymerResidueFlag:
text += '<li><a class="fltlft" href="/service/entity/result_view?' + input_data + '&type=split" target="_blank"> ' \
+ '<span style="color:red;">Split modified residue to standard residue + modification in polymer</span> </a></li>\n'
+ '<span style="color:red;">Split modified residue to standard residue + modification in polymer</span> </a></li>\n'
#
if self.__combResidueFlag:
text += '<li><a class="fltlft" href="/service/entity/result_view?' + input_data + '&type=merge" target="_blank"> ' \
+ '<span style="color:red;">Merge standard amino acid residue + modification to modified amino acid residue in polymer</span> </a></li>\n'
+ '<span style="color:red;">Merge standard amino acid residue + modification to modified amino acid residue in polymer</span> </a></li>\n'
#
if self.__matchResultFlag:
text += '<li><a class="fltlft" href="/service/entity/result_view?' + input_data \
+ '" target="_blank"> <span style="color:red;">View All Search Result(s)</span> </a></li>\n'
+ '" target="_blank"> <span style="color:red;">View All Search Result(s)</span> </a></li>\n'
#
if self.__graphmatchResultFlag:
text += '<li><a class="fltlft" href="/service/entity/result_view?' + input_data \
+ '&type=match" target="_blank"> Update Coordinate File with Match Result(s) </a></li>\n'
+ '&type=match" target="_blank"> Update Coordinate File with Match Result(s) </a></li>\n'
#
text += '<li><a class="fltlft" href="/service/entity/result_view?' + input_data \
+ '&type=input" target="_blank"> Update Coordinate File with Input IDs </a></li>\n'
+ '&type=input" target="_blank"> Update Coordinate File with Input IDs </a></li>\n'
#
text += '<li><a class="fltlft" href="/service/entity/result_view?' + input_data + '&type=split_with_input" target="_blank"> ' \
+ 'Split non standard residue in polymer </a></li>\n'
+ 'Split non standard residue in polymer </a></li>\n'
#
text += '<li><a class="fltlft" href="/service/entity/download_file?' + input_data + '" target="_blank"> Download Files </a></li>\n'
#
Expand Down
2 changes: 1 addition & 1 deletion wwpdb/apps/entity_transform/depict/StrFormDepict.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion wwpdb/apps/entity_transform/depict/StrSummaryDepict.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def __depictionLigand(self):
text = '<table>\n'
text += '<tr>\n'
text += '<th>Selection/<br/>User Defined Group ID<br/><input id="ligand_select_all" value="Select All" type="button" onClick="select_ligand(' \
+ "'ligand_select_all'" + ');" /></th>\n'
+ "'ligand_select_all'" + ');" /></th>\n'
text += '<th>3 Letter Code</th>\n'
text += '<th>Chain ID</th>\n'
text += '<th>ResNum</th>\n'
Expand Down
2 changes: 1 addition & 1 deletion wwpdb/apps/entity_transform/update/CombineCoord.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 300e8df

Please sign in to comment.