mlco2 / codecarbon

Track emissions from Compute and recommend ways to reduce their impact on the environment.
https://mlco2.github.io/codecarbon
MIT License
1.11k stars 173 forks source link

update python script to retrieve our word in data's data #674

Open MarionCoutarel opened 1 week ago

MarionCoutarel commented 1 week ago

Change the our_world_in_data script so the global_energy_mix.json now holds the last available data regarding the carbon intensity of electricity per country.

For exemple, as carbon intensity of electricity was not available for Albania in 2023, Albania was not in the former global-energy_mix.json. Albania now appears with its carbon intensity of electricity of 2022.

It allows to integrate 135 new coutries (or region).

5 out 135 with data older than 2022 : 2021 for overseas french regions (French Guiana, Guadeloupe, Martinique, Reunion) and 2009 for western Sahara

benoit-cty commented 1 week ago

Thanks Marion !

A test is failing because it use JOR (Jordana) as a test and we know have data for it.

Can you check if we have another test for countries without data ? Ti know if we update the result for JOR or if we have to switch to another unknown country code ?