Skip to content

Commit

Permalink
avoid duplicated calls to get_id
Browse files Browse the repository at this point in the history
  • Loading branch information
aozalevsky committed May 10, 2024
1 parent bb188e5 commit 71ceb76
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions ihm_validation/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,15 @@ def run_entry_composition(self, Template_Dict: dict) -> dict:
utility.dict_to_JSlist_rows(RB, flex))
Template_Dict['flex'] = utility.get_flex(
utility.dict_to_JSlist_rows(RB, flex))
Template_Dict['ID'] = self.input.get_id()
Template_Dict['ID_w'] = self.input.get_id().split()
Template_Dict['ID_T'] = self.input.get_id()[0:6]+'_' + \
self.input.get_id()[6:]
Template_Dict['ID_MP'] = [str(self.input.get_id()[0:6]+'_' +
self.input.get_id()[6:])]
entry_id = self.input.get_id()
Template_Dict['ID'] = entry_id
Template_Dict['ID_w'] = entry_id.split()
Template_Dict['ID_T'] = entry_id[0:6]+'_' + \
entry_id[6:]
Template_Dict['ID_MP'] = [str(entry_id[0:6]+'_' +
entry_id[6:])]
Template_Dict['ID_R'] = (
self.input.get_id()[0:6]+'_'+self.input.get_id()[6:]).split()
entry_id[0:6]+'_'+entry_id[6:]).split()
Template_Dict['Molecule'] = self.input.get_struc_title()
Template_Dict['Authors'] = self.input.get_authors()
title, authors = self.input.get_primary_citation_info()
Expand Down

0 comments on commit 71ceb76

Please sign in to comment.