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.
CountryConfigurationcurrently embeds industry-dimensioned defaults (for examplecapital_inputs_delay,depreciation_rates, substitution bundles, and planner sizing) that can conflict withDataWrapper.n_industries.This forces notebook/user code to patch
CountryConfigurationafter loading data, which is the wrong boundary. The structural dimension should come fromDataConfiguration/DataWrapper, whileCountryConfigurationshould remain behavioral.Suggested fix: add a central alignment step in
Simulation.from_datawrapper(...)(or equivalent bootstrap path) so YAML-loadedCountryConfigurationis automatically reconciled with the data-derived industry dimension.