Skip to content

Commit

Permalink
fix: output archive requests json with no indent by default (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmertes authored Dec 7, 2024
1 parent 1820085 commit 425bf7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/anemoi/inference/outputs/gribfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def close(self):
path = self.archive_requests["path"]
extra = self.archive_requests.get("extra", {})
patch = self.archive_requests.get("patch", {})
indent = self.archive_requests.get("indent", None)

def _patch(r):
if self.context.config.use_grib_paramid:
Expand Down Expand Up @@ -147,4 +148,4 @@ def _patch(r):
request.update(extra)
requests.append(request)

json.dump(requests, f, indent=4)
json.dump(requests, f, indent=indent)

0 comments on commit 425bf7f

Please sign in to comment.