Skip to content

Commit

Permalink
Merge pull request #41 from Knowledge-Graph-Hub/compress_uploads
Browse files Browse the repository at this point in the history
Output transformed nodes+edges to .tar.gz
  • Loading branch information
justaddcoffee committed Sep 14, 2021
2 parents ecfa911 + 6a1eb45 commit 21e4d9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kg_obo/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ def kgx_transform(input_file: list, input_format: str,
kgx.cli.transform(inputs=input_file,
input_format=input_format,
output=output_file,
output_format=output_format)
output_format=output_format,
output_compression="tar.gz")
if hasattr(logger, "_cache") and 30 in logger._cache and logger._cache[30]: # type: ignore
logger.error("Encountered errors in transforming or parsing.") # type: ignore
errors = True
Expand Down

0 comments on commit 21e4d9a

Please sign in to comment.