Skip to content

Commit

Permalink
bug fix in some cases where organism_base in synonym
Browse files Browse the repository at this point in the history
  • Loading branch information
ddooley committed Feb 1, 2025
1 parent 5bd34d4 commit f49e6fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ontology/scripts/organism_parts.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,15 +291,16 @@ def main():
else:
comment = item['comment'].format(organism=species_label, organism_base=s['species'], n=article)


if item['Exact Synonym'] is None:
exact_synonym = ''
else:
exact_synonym = item['Exact Synonym'].format(organism=species_label)
exact_synonym = item['Exact Synonym'].format(organism=species_label, organism_base=s['species']);

if item['Broad Synonym'] is None:
broad_synonym = ''
else:
broad_synonym = item['Broad Synonym'].format(organism=species_label)
broad_synonym = item['Broad Synonym'].format(organism=species_label, organism_base=s['species'])

if ID_res.created != '':
created = ID_res.created
Expand Down

0 comments on commit f49e6fa

Please sign in to comment.