Skip to content

Commit

Permalink
Make robot usage more explicit
Browse files Browse the repository at this point in the history
This also makes sure debugging happens correctly
  • Loading branch information
cthoyt committed Jan 21, 2025
1 parent 4003074 commit d801c8a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/pyobo/struct/struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -1209,12 +1209,16 @@ def write_default(
tqdm.write(
f"[{self.ontology}] converting OFN to OBO Graph at {self._obograph_path}"
)
bioontologies.robot.convert(self._ofn_path, self._obograph_path)
bioontologies.robot.convert(
self._ofn_path, self._obograph_path, debug=True, merge=False, reason=False
)
if write_owl and (not self._owl_path.exists() or force):
tqdm.write(f"[{self.ontology}] writing OWL to {self._owl_path}")
import bioontologies.robot

bioontologies.robot.convert(self._ofn_path, self._owl_path)
bioontologies.robot.convert(
self._ofn_path, self._owl_path, debug=True, merge=False, reason=False
)
if write_ttl and (not self._ttl_path.exists() or force):
tqdm.write(f"[{self.ontology}] writing Turtle to {self._ttl_path}")
self.write_rdf(self._ttl_path)
Expand Down

0 comments on commit d801c8a

Please sign in to comment.