Repository navigation
fix(Split): let a weight map name the streams of a simulation - #391
seabbs-bot wants to merge 2 commits into
Conversation
A strata Split with a weight map fixes its stream count as the map's row count, but with no data it still asked the data to name its streams and refused a scalar missing. It now names them group1, group2 and so on, the way a data matrix with that many rows would, so a mapped Split simulates the way every other observation model does. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lw3PbYZfA1dZhfaaE9tbdp
Try this Pull Request!Option 1: Julia Package ManagerOpen Julia and type: import Pkg
Pkg.activate(temp=true)
Pkg.add(url="https://github.com/EpiAware/ComposableTuringIDModels.jl", rev="claude/prs-issues-triage-p548ev-split-missing")
using ComposableTuringIDModelsOption 2: Local CheckoutIf you have the repo locally: git checkout claude/prs-issues-triage-p548ev-split-missing
julia --project=. -e "using Pkg; Pkg.instantiate()" |
Benchmark comparison vs baseMinimum time per call. Buckets are PR time as a % of base, so lower is faster (🟢 faster, ⚪ within 5%, 🔴 slower). Counts of benchmarks per bucket:
Evaluation — 9 benchmarks (by time change)
AD gradients — 7 benchmarks (by time change)
|
The rebuild-coverage test item added in #372 does `using InteractiveUtils: subtypes`, but the stdlib was never added to `test/Project.toml`. Julia 1.12 refuses to load a stdlib that is not in the active environment, so every test matrix job on a branch carrying that item errors in `reconstruction.jl`. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lw3PbYZfA1dZhfaaE9tbdp (cherry picked from commit 4d7322a)
|
CI status on 850578d. Every test job that has finished is green, and the docs build is running. Generated by Claude Code |
|
📖 Documentation preview is ready! View the docs for this PR at: https://EpiAware.github.io/ComposableTuringIDModels.jl/previews/PR391/ This preview will be updated automatically when you push new commits. |
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 6 files with indirect coverage changes 🚀 New features to boost your workflow:
|
|
Update on 850578d. Every test matrix job and all seven AD jobs are green, and the docs build succeeded. That leaves
Generated by Claude Code |
|
Correction to the comment above: the test item that exercises the changed line is Generated by Claude Code |
|
Further to the above: the cancelled coverage attempt had already uploaded its unit report before the cap hit, so Codecov now shows Generated by Claude Code |
Closes #365
A strata
Splitwith a weight map fixes its stream count as the map's row count, so the shape resolution builds the right infection process fory_t = missing.The model then failed inside
Split, because_split_namesreads the stream names off the data and a scalarmissingnames nothing.The workaround was a matrix of
missings of the right row count, which carries the shape in a placeholder rather than on the model._split_namesnow falls back togroup1,group2and so on forsize(map, 1)streams when the data names none, which is what a data matrix with that many rows gives.A strata template with no map still has nothing to name its streams by and still errors.
Tests
One item covers the bare
Splitsimulating frommissingwith the map, the same through anIDModelover three infection strata projected onto one stream, and the template-without-map error staying put.The split, strata composition and inference items pass locally, 124 of 124.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Lw3PbYZfA1dZhfaaE9tbdp
Generated by Claude Code