You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mdl: no round-trip test checks saved flow pipe flags #403
The MDL writer now sets a flow pipe's fourth field the way Vensim's files do: 4 on the pipe to the flow's downstream end, 100 on the pipe to its upstream end (#1076).
Two things are still open.
No test compares saved pipe flags with Vensim's. mdl_format_roundtrip reduces each pipe record to its endpoint (normalize_pipe_line), so field 4 is dropped before comparison, and only hand-built unit tests pin the rule.
Some Vensim-written files in the test corpus use other values (36 or 68).
The importer does not keep the raw value, so a save rewrites them as 4 or 100.
Vensim's sketch-format page does not document the field (vensim.com/documentation/24305.html); whether Vensim treats 36/68 differently from 4/100 is unverified.
Fix
Recommended: in normalize_pipe_line, keep field 4 when the original is 4 or 100, so the round trip of test/bobby/vdf/econ/mark2.mdl checks it.
Leave 36/68 rewritten unless a Vensim user sees a difference; keeping the raw value would add a field to the view model for a cosmetic match.
changed the title [-]MDL writer pipe connector flags may not match Vensim originals[/-][+]mdl: saved flow pipe flags differ from Vensim's[/+]on Oct 12, 2026
Activity
engine: emit Vensim MDL sketch records in increasing UID order
[-]MDL writer pipe connector flags may not match Vensim originals[/-][+]mdl: saved flow pipe flags differ from Vensim's[/+][-]mdl: saved flow pipe flags differ from Vensim's[/-][+]mdl: no round-trip test checks saved flow pipe flags[/+]