Repository navigation
Compare runs on one chart: comparison_chart, study_comparison, MCP compare (charts step 4a) - #1097
Merged
Merged
Conversation
…mpare One channel of one stream across several runs, a series per run named as the caller names it. aquakin.plant.comparison_chart takes solutions in memory (each with its own parameters), saved results or tables, read through the one source reader stream_chart now shares (_source_table); runs on different clocks are refused, and a run missing the channel is named. aquakin.study.study_comparison takes study folders, each series named after its study, with as many of its project's folders as it takes to tell two apart. aquakin mcp gains a `compare` tool, so an assistant can show scenarios side by side, with a permit limit drawn. compliance_chart, the rest of step 4 of .claude/notes/charts-design.md, waits for the evaluate study kind (#1036), as decision C5 says. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of the charts design (
.claude/notes/charts-design.md): the first half of step 4. Remaining:compliance_chart, which waits for #1036'sevaluatestudy kind, as decision C5 says (mainhascheck_limitbut not the kind yet).Summary
Compare runs on one chart: one channel of one stream across several runs, a line per run.
aquakin.plant.comparison_chart(sources, stream, channel, *, params=None, max_rows=None, t=None)takes{name: source}, where a source is a solution in memory, saved results (load_results) or a table either gives.paramsgives a solution its own parameter vector, by run name.stream_chartnow shares (_source_table), so a run's line is exactly its ownstream_chart.aquakin.study.study_comparison(paths, stream, channel, t=None)takes simulation study folders. Each line is named after its study; when two studies share a name, as many of their project's folders are added as it takes to tell them apart (full paths as a last resort). A study named twice, or one without series in time, is refused.compare(paths, stream, channel, t=None, limit=None)(effect"read") returns one picture with its summary, aschartdoes, so an assistant can show scenarios side by side with a permit limit drawn. The server's instructions, the tool table indocs/ai_assistants.mdand therun-studyskill mention it.plant_files.md, a row inpublic_api.md, the design note's status, and a changelog fragment.Things a reviewer should know
compliance_chartis not built. C5 puts it after theevaluatestudy kind, and its numbers must come fromcheck_limit(the design note: never recomputed). The Performance indices and effluent compliance from a study #1036 session will say when the kind lands.KeyErrorthat did not say which run. The error now names it.Testing
tests/integration/test_plant_charts.py:muH(read with its ownparams) each give their ownstream_chartvalues.tests/integration/test_mcp_charts.py:comparethrough a real MCP client: the image is byte for byteto_pngof the expected comparison with its limit, and the text is its summary (counts above the limit worked out by hand in the test).project, and across folders that differ only between project and study (full paths); a study named twice; an unknown channel.main(Name unit settings in words, fold advanced ones away, and move a model in one step #1091): 268 tests (charts, MCP, plot, plugin, extension build, editor results, study charts and the repo-rule checks) pass.scripts/check_types.py, the strict docs build andscripts/check_test_integrity.py("No test was weakened") all pass.full-ciis not required.claude plugin validatepasses.slow,validation,tests/browser(no editor code changed).Patch coverage
python scripts/patch_coverage.py: 100.00% of 71 changed lines.Generated by Claude Code