Skip to content

Commit

Permalink
Don't annotate redundant parent synonym type in OBO export
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Jul 24, 2023
1 parent dc2a326 commit 79a69dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyobo/struct/struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def to_obo(self) -> str:

def _fp(self) -> str:
x = f'"{self._escape(self.name)}" {self.specificity}'
if self.type:
if self.type and self.type.pair != DEFAULT_SYNONYM_TYPE.pair:
x = f"{x} {self.type.curie}"
return f"{x} [{comma_separate(self.provenance)}]"

Expand Down

0 comments on commit 79a69dd

Please sign in to comment.