From d801c8aff8442032bc660e5ec64e718e86e41eb6 Mon Sep 17 00:00:00 2001 From: Charles Tapley Hoyt Date: Tue, 21 Jan 2025 10:24:32 +0100 Subject: [PATCH] Make robot usage more explicit This also makes sure debugging happens correctly --- src/pyobo/struct/struct.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pyobo/struct/struct.py b/src/pyobo/struct/struct.py index 92aebefa..628369a0 100644 --- a/src/pyobo/struct/struct.py +++ b/src/pyobo/struct/struct.py @@ -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)