Skip to content

Removed RealTimeCloud module #166

Merged
jnioche merged 3 commits intomainfrom
164
Mar 6, 2026
Merged

Removed RealTimeCloud module #166
jnioche merged 3 commits intomainfrom
164

Conversation

@jnioche
Copy link
Member

@jnioche jnioche commented Mar 6, 2026

and put regionmapping logic in realtime cloud

implements #164

The RealTime Cloud module was only used to provide the mappings between cloud region codes and ElectricityMaps ones. This can be obtained straight from the EM API and will have better coverage and precision.

…cloud

Signed-off-by: Julien Nioche <julien@digitalpebble.com>
@jnioche jnioche added this to the 0.9 milestone Mar 6, 2026
@jnioche
Copy link
Member Author

jnioche commented Mar 6, 2026

There are differences between the data we have in main and what we have in this PR

│ Zone │ Name │ Direct (gCO2/kWh) │ Lifecycle (gCO2/kWh) │
│ US-NW-BPAT │ Bonneville Power Administration │ 76.91 │ 106.65 │
│ US-NW-PACW │ PacifiCorp West │ 146.95 │ 194.17 │

PACW is nearly 2× higher than BPAT — this is definitely the source of your different results for Oregon workloads.

Which is correct?

The em-datacenters.json places the datacenter at lon=-119.7, lat=45.8, which is Boardman, OR — right on the Columbia River. That location sits within BPA's service territory (US-NW-BPAT), not PacifiCorp West (US-NW-PACW). AWS is also
well-known for sourcing renewable power through the Bonneville Power Administration in Oregon.

The old CSV (US-NW-BPAT) appears to be the more accurate attribution. The new em-datacenters.json entry looks like it has an error — US-NW-PACW covers eastern Oregon/Utah/Wyoming, not the Boardman area.

I will patch this for now and report to EM later.

@jnioche
Copy link
Member Author

jnioche commented Mar 6, 2026

Zone key changed:

┌────────────┬───────────────────────────────────────────────┬────────────┐
│ Region │ Old CSV │ New JSON │
├────────────┼───────────────────────────────────────────────┼────────────┤
│ eu-north-1 │ ES (last write wins from the duplicate SE/ES) │ SE-SE3 │
├────────────┼───────────────────────────────────────────────┼────────────┤
│ us-west-2 │ US-NW-BPAT │ US-NW-PACW │
└────────────┴───────────────────────────────────────────────┴────────────┘

Regions in old CSV missing from new JSON:

┌───────────────┬──────────────┐
│ Region │ Old zone key │
├───────────────┼──────────────┤
│ us-gov-east-1 │ US-MIDA-PJM │
├───────────────┼──────────────┤
│ us-gov-west-1 │ US-NW-BPAT │
└───────────────┴──────────────┘

jnioche added 2 commits March 6, 2026 14:03
…carbon intensity factor found for a region

Signed-off-by: Julien Nioche <julien@digitalpebble.com>
…sions per item (which can hide efficient regions)

Signed-off-by: Julien Nioche <julien@digitalpebble.com>
@jnioche jnioche merged commit fa3acc4 into main Mar 6, 2026
5 checks passed
@jnioche jnioche deleted the 164 branch March 6, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant