Skip to content

Build structured results from qsidd output - #100

Merged
harryswift01 merged 6 commits into
mainfrom
96-feature-build-structured-results
Nov 16, 2026
Merged

harryswift01 merged 6 commits into
mainfrom
96-feature-build-structured-results

Conversation

@harryswift01

Copy link
Copy Markdown
Member

Summary

This PR adds the sist.results package, which turns qsidd's full-precision output into a result matching the schema, for both successful and failed runs. Part of #96.

Changes

  • qsidd_output.py: splits qsidd's text output into values, warnings and the per-position table.
  • sequence.py: reads the input sequence the way qsidd does.
  • reader.py: turns qsidd's output into result values for any algorithm, using the names in the transitions registry.
  • model.py: typed dataclasses for each section of a result, each writing its part of the schema.
  • diagnostics.py: warning and error codes, and the checks that raise warnings for the sequence, the settings and qsidd's own warnings.
  • provenance.py: records the SIST version, git commit, environment and timings.
  • writer.py: checks a result against the schema and writes it as JSON.
  • builder.py: puts the parts together for a successful or failed run.
  • A partition function that underflows becomes a failed result, and undefined values are written as null.

Testing

  • Added unit tests for each module, using the saved qsidd outputs.

Impact

  • No change to existing behaviour or output. Nothing calls the package until the --json option in the next PR.
  • No new dependencies.

Checklist

  • Tests added or updated
  • Documentation updated
  • If dependencies in pyproject.toml changed, the lower bounds were reviewed deliberately

@harryswift01 harryswift01 self-assigned this Nov 11, 2026
@harryswift01 harryswift01 added the enhancement New feature or request label Nov 11, 2026
@harryswift01
harryswift01 added this pull request to stack #99 November 11, 2026 15:07
@harryswift01
harryswift01 force-pushed the 96-feature-build-structured-results branch from dc2cb34 to 9cd5c52 Compare November 12, 2026 11:48
Base automatically changed from 96-feature-group-results-by-transition to main November 12, 2026 15:54
@harryswift01
harryswift01 requested a review from jimboid November 16, 2026 15:04

@jimboid jimboid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to see this merge. Looks very complete

@harryswift01
harryswift01 merged commit b87ea72 into main Nov 16, 2026
36 of 37 checks passed
@harryswift01
harryswift01 deleted the 96-feature-build-structured-results branch November 16, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants