Skip to content

feat(dada-pooled): add --gzip for per-sample JSON output (#70)#73

Merged
cjfields merged 1 commit into
mainfrom
fix/issue-70-gzip-pooled
Jul 10, 2026
Merged

feat(dada-pooled): add --gzip for per-sample JSON output (#70)#73
cjfields merged 1 commit into
mainfrom
fix/issue-70-gzip-pooled

Conversation

@cjfields

Copy link
Copy Markdown
Member

Closes #70.

Problem

dada-pooled writes per-sample JSON into --output-dir, so unlike subcommands that write a single file there was no way to request gzip compression of the outputs.

Change

  • New --gzip flag on dada-pooled. When set, each sample is written as {sample}.json.gz via the existing misc::write_maybe_gz helper (keys off the .gz extension).
  • Default behavior unchanged: plain {sample}.json.

Verification

  • cargo build clean.
  • Smoke-tested end-to-end: with --gzip, outputs are valid gzip and decompress to the expected tagged JSON; without it, plain .json as before.

Note: for consistency, dada and dada-pseudo share the same directory-output pattern and could get the same flag in a follow-up (also relevant to #72).

🤖 Generated with Claude Code

dada-pooled writes per-sample JSON into --output-dir with no way to
request gzip compression, unlike subcommands that write a single file.
Add a --gzip flag that writes each sample as `{sample}.json.gz` and
routes through the existing misc::write_maybe_gz helper. Default output
is unchanged (`{sample}.json`).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cjfields cjfields merged commit aecd3da into main Jul 10, 2026
7 checks passed
@cjfields cjfields deleted the fix/issue-70-gzip-pooled branch July 10, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dada-pooled JSON output aren't gzipped

1 participant