Skip to content

Feature: Write structured JSON results from sist #96

Description

@harryswift01

Problem or motivation

SIST has a result schema and a validator, but sist still only writes text output. The text output also loses precision, so it cannot fill the schema reliably: large state counts are rounded and the partition function can print as 0.

Proposed solution

Add a --json FILE option that writes a result matching sist-result-v1.schema.json, checked with ResultValidator before it is written. Add a full-precision qsidd output for the JSON path, so the text output and regression tests do not change.

Done when

  • sist --json writes valid results for all four algorithms.
  • Failed runs write a result with an error.
  • The text output and regression tests are unchanged.
  • The example results are regenerated with sist --json.

Additional context

Builds on #19, #21 and #22.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions