Skip to content

engine: arrayed dataset VDF import is untested and may fail #501

Open

Description

@bpowers

Nobody has checked whether importing an arrayed Vensim dataset VDF (magic 7f f7 17 41, e.g. a data file loaded with a model) gives the right series.
The Rust dataset reader is tested only on a scalar dataset, test/bobby/vdf/econ/data.vdf.

Example

third_party/uib_sd/zambaqui/Data.vdf (the data file for the UiB zambaqui course models) is the one arrayed dataset we have.
Reading its block list with the same rule that works for scalar datasets gives an empty list, which suggests arrayed datasets lay that list out differently.
What VdfDatasetFile::extract_data does on this file today is unknown; simlin vdf-dump third_party/uib_sd/zambaqui/Data.vdf would show it.
The reader checks name count against record count and block indices against the block list, so an error is more likely than silently wrong numbers, but that is unverified.

Why it matters

Users import datasets through simlin.load_vdf and libsimlin.
Arrayed data files exist in real course material, though only this one is in our corpus.

Fix

Run the reader on Data.vdf.
If it already extracts correct series, add a test pinning a few values.
If not, make it fail with a clear "arrayed dataset VDFs are not supported" error and pin that; decoding the arrayed layout can wait for a user who needs it.

The Python debugging tool tools/vdf_xray.py also refuses dataset files (Dataset parsing not yet implemented in this tool.); bringing it to parity with the Rust reader is optional.

Pointers

  • src/simlin-engine/src/vdf.rs (VdfDatasetFile::parse, series_bindings, extract_data)
  • src/simlin-cli/src/vdf_dump.rs
  • docs/design/vdf.md

Activity

  1. added
    engine
    hygiene
    on Jun 8, 2026
  2. changed the title [-]tools/vdf_xray.py stubs dataset (0x41) parsing while Rust VdfDatasetFile is implemented[/-] [+]engine: arrayed dataset VDF import is untested and may fail[/+] on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enginehygiene

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions