Skip to content

Commit 59f2ba9

Browse files
committed
DELTA_ECO column name change
1 parent 185028b commit 59f2ba9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

etl/tier_data/scripts/load_all_tier_results.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ def _multi_value_aggregate(scenario: str, short_code: str, tier_sums: dict, tota
513513
def load_delta_eco_data() -> Tuple[List[Dict], List[Dict]]:
514514
"""
515515
DELTA_ECO — Delta Ecology.
516-
Format: scenario (numeric, e.g. '11' for s0011), TierScore.
516+
Format: scenario (numeric, e.g. '11' for s0011), NDO.
517517
One location row per scenario: wba DETAW.
518518
"""
519519
csv_path = STAGING_DIR / 'DELTA_ECO.csv'
@@ -534,7 +534,7 @@ def load_delta_eco_data() -> Tuple[List[Dict], List[Dict]]:
534534
scenario = normalize_scenario_id(row.scenario)
535535
if scenario not in ALLOWED_SCENARIOS:
536536
continue
537-
tier_continuous = float(row.TierScore)
537+
tier_continuous = float(row.NDO)
538538
tier = math.trunc(tier_continuous)
539539
agg = _single_value_aggregate(scenario, 'DELTA_ECO', tier)
540540
agg['_source_file'] = 'DELTA_ECO.csv'

0 commit comments

Comments
 (0)