Skip to content

Use augur.io.write_json()#1194

Merged
victorlin merged 4 commits intomasterfrom
victorlin/use-write_json
Jan 28, 2026
Merged

Use augur.io.write_json()#1194
victorlin merged 4 commits intomasterfrom
victorlin/use-write_json

Conversation

@victorlin
Copy link
Member

@victorlin victorlin commented Jan 16, 2026

This PR contains 1 prep commit + 2 main commits that switch to use augur.io.write_json() where appropriate.

Closes #1098

Depends on merge and release of nextstrain/augur#1943

Release checklist

If this pull request introduces new features, complete the following steps:

  • Update docs/src/reference/change_log.md in this pull request to document these changes by the date they were added.

'w' is equivalent to 'wt' since the default behavior uses text mode.

This is purely for consistency with other usages of open()+json.dump()
in scripts, in preparation for an upcoming change.
@victorlin victorlin self-assigned this Jan 16, 2026
@victorlin victorlin added the blocked Dependent on external development label Jan 20, 2026
The replacement is part of Augur's public API which comes with more
stability and documentation.

It will automatically minify large outputs, and will no longer add an
entry for "generated_by" Augur version, which didn't make sense in the
output of these custom scripts anyways.
augur.io.write_json() will automatically minify large outputs.
@victorlin victorlin force-pushed the victorlin/use-write_json branch from 9b05bae to 2dd1f7d Compare January 22, 2026 19:48
@victorlin victorlin changed the title Auto-minify JSON outputs Use augur.io.write_json() Jan 22, 2026
@joverlee521
Copy link
Contributor

This should no longer be blocked since nextstrain/augur#1943 was released with Augur 33.0.0. Probably just needs an entry in the changelog?

@victorlin victorlin removed the blocked Dependent on external development label Jan 28, 2026
@victorlin
Copy link
Member Author

victorlin commented Jan 28, 2026

Done:

- 28 January 2026: Large JSON files are now automatically minified. This requires a minimum Augur version of 33.0.0. [PR 1194](https://github.com/nextstrain/ncov/pull/1194)

@victorlin victorlin force-pushed the victorlin/use-write_json branch from 7a49dae to 6802b09 Compare January 28, 2026 23:15
@victorlin victorlin merged commit 268dda8 into master Jan 28, 2026
4 of 6 checks passed
@victorlin victorlin deleted the victorlin/use-write_json branch January 28, 2026 23:16
@victorlin
Copy link
Member Author

Oops, the conda runtime check failed because that hasn't been updated with Augur 33.0.0 yet. I've triggered a re-run to fix that.

@trvrb
Copy link
Member

trvrb commented Feb 11, 2026

Thanks for addressing this @victorlin!

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.

Dataset JSONs are not minified

4 participants