Skip to content

Update policyengine to 4.18.9 (region-scope dataset corruption fix) #3722

Description

@anth-volk

Summary

Raise the policyengine[models] pin from 4.18.8 to 4.18.9 and relock.

Why

policyengine 4.18.9 (policyengine.py #450, issue #449) fixes a dataset-corruption bug: constructing a dataset with in-memory data= auto-saved to its filepath, and region scoping built its filtered copy with filepath=<the shared source file> — so constructing the scoped copy truncated and overwrote the shared dataset. In worker processes that reuse a dataset file, this crashed subsequent region runs (No households found matching state_fips=N) or silently computed results on one region's data.

The fix removes the construction-time autosave, makes run() load the input dataset only when the caller did not already supply data, and builds region-scoped copies with filepath=None. Bumping the pin pulls the fix into the v1 API.

Scope

  • pyproject.toml: policyengine[models]==4.18.84.18.9.
  • uv.lock: relocked (also picks up the project's own 3.43.6 → 3.43.7 version already present in pyproject.toml but stale in the committed lock).
  • Companion country packages (policyengine_canada, policyengine-ng, policyengine-il) unchanged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions