Skip to content

n_industries mismatch between DataConfiguration and CountryConfiguration #79

Description

@agurgone

CountryConfiguration currently embeds industry-dimensioned defaults (for example capital_inputs_delay, depreciation_rates, substitution bundles, and planner sizing) that can conflict with DataWrapper.n_industries.

This forces notebook/user code to patch CountryConfiguration after loading data, which is the wrong boundary. The structural dimension should come from DataConfiguration/DataWrapper, while CountryConfiguration should remain behavioral.

Suggested fix: add a central alignment step in Simulation.from_datawrapper(...) (or equivalent bootstrap path) so YAML-loaded CountryConfiguration is automatically reconciled with the data-derived industry dimension.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions