Skip to content

Commit

Permalink
return consolidated version
Browse files Browse the repository at this point in the history
  • Loading branch information
martindurant committed Dec 15, 2023
1 parent 2d2c38f commit 6fc1049
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kerchunk/combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,11 @@ def translate(self, filename=None, storage_options=None):
out = consolidate(self.out)
else:
self.out.flush()
out = self.out
if filename is not None:
with fsspec.open(filename, mode="wt", **(storage_options or {})) as f:
ujson.dump(out, f)
return self.out
return out


def _reorganise(coos):
Expand Down

0 comments on commit 6fc1049

Please sign in to comment.