Skip to content

Commit

Permalink
reconciled dumper changes between branches
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall committed Dec 21, 2023
1 parent 0b14399 commit a22515c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ def dump(self, path: Union[str, TextIO] = None, syntax: str = "obo", **kwargs):
else:
self.obo_document.dump(path)
else:
super().dump(path, syntax)
super().dump(path, syntax=syntax)

def save(
self,
Expand Down
4 changes: 3 additions & 1 deletion src/oaklib/interfaces/dumper_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,6 @@ def dump(
logging.info(f"Using {converter}, kwargs={kwargs}")
converter.curie_converter = self.converter
kwargs = {k: v for k, v in kwargs.items() if v is not None}
converter.dump(ogdoc, target=path, format=syntax, **kwargs)
if "format" not in kwargs:
kwargs["format"] = syntax
converter.dump(ogdoc, target=path, **kwargs)

0 comments on commit a22515c

Please sign in to comment.