Configuration Reference
ReEDSConfig
Section titled “ReEDSConfig”| Package field | Type | Default | Interpretation |
|---|---|---|---|
solve_year | int or list[int] | required | Capacity/investment selection |
weather_year | int or list[int] | required | Profile input selection |
case_name | str or None | None | Optional case label |
scenario | str | "base" | Scenario label |
excluded_techs | list[str] or None | None | None uses package exclusions; an explicit list replaces them |
use_degraded_capacity | bool | False | Select degradation-adjusted online capacity |
primary_solve_year and primary_weather_year return the first value when a list
is supplied. The CLI tutorial uses scalar years so downstream plugins receive one
selection. Config validation is not proof that the input run contains that year;
the parser validates mapped data during its lifecycle.
The CLI’s path locates the data store. It is not a ReEDSConfig field in
Python: pass it to DataStore.from_plugin_config(config, path=run_path) instead.
See the tested parsing tutorial for the complete
context construction and public config source.
ReEDSConfig is the parser configuration model.
Key fields:
solve_year: int or list of intweather_year: int or list of intcase_name: optional stringscenario: optional string, defaultbaseuse_degraded_capacity: bool, defaultFalse; choose degradation-adjustedcap_deg_ivrtinstead ofcap_ivrtfor online capacity.excluded_techs: optional list of technologies to exclude. When omitted, the list fromdefaults.jsonis used.
Convenience properties:
primary_solve_yearprimary_weather_year
Parser Configuration Assets
Section titled “Parser Configuration Assets”The parser loads and applies these JSON assets from src/r2x_reeds/config/.
defaults.json
Section titled “defaults.json”Defines package-level parser defaults including:
excluded_techstech_categoriescategory_class_mapping- reserve defaults (
default_reserve_types,reserve_duration,reserve_time_frame, etc.) - unit conversion constants
Notable default behavior:
electrolyzeris excluded from general generator parsing (excluded_techs) to keep purchaser-load modeling explicit.can-importsis excluded by default. To include it for a run, provide anexcluded_techslist that omitscan-imports.
file_mapping.json
Section titled “file_mapping.json”Defines named datasets and how each is read and normalized.
Each entry includes:
name: logical dataset namefpath: relative file path in the ReEDS runinfo: metadata (is_input,is_optional,units, etc.)- optional
readersettings proc_spec: column mapping, filtering, schema, and pivot rules
Output bundle behavior:
- Output datasets that previously pointed to
outputs/*.csvnow point tooutputs/outputs.h5 - The parser reads
outputs.h5once per run and caches dataset groups for reuse - For backward compatibility, if
outputs.h5(or a requested group) is missing, parser read paths fall back to legacyoutputs/<dataset>.csvwhen available
Examples of purchaser-load related datasets:
hydrogen_production_capacityhydrogen_production_loadhydrogen_production_annual_loadloadsite_ophour_map_myr
parser_rules.json
Section titled “parser_rules.json”Maps normalized rows to component constructor fields.
Important sections:
- Generator families (
ReEDSThermalGenerator,ReEDSVariableGenerator,ReEDSStorage,ReEDSHydroGenerator) - Load and transmission components
- Reserve and emissions components
- Consuming technology rules (
ReEDSConsumingTechnology,ReEDSElectrolyzerDemand)
Rule fields include:
field_mapgettersdefaults
Runtime Placeholder Substitution
Section titled “Runtime Placeholder Substitution”When reading mapped data, parser placeholders are commonly resolved from ReEDSConfig:
{solve_year}{weather_year}
This allows one mapping specification to work across multiple scenarios and years.