Skip to content

Resolve UK geography output assets locally or from GCS #372

@anth-volk

Description

@anth-volk

UK constituency and local-authority output helpers currently require callers to pass local file paths for the geography weight matrices and lookup CSVs, even though the canonical files are already identified in the UK region metadata and are stored in GCS.

We should make these output helpers easier to use by adding a shared asset resolver that:

  • tries explicit caller-provided paths first, preserving existing behavior;
  • searches standard local data directories for the canonical geography asset filenames;
  • downloads missing canonical files from the PolicyEngine UK GCS bucket as a fallback;
  • exposes the resolution behavior through reusable strategy classes so tests and advanced callers can control lookup behavior.

This should cover both UK parliamentary constituency outputs and UK local authority outputs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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