Skip to content

Commit

Permalink
Fix CA-AB production parser down #7441 (#7448)
Browse files Browse the repository at this point in the history
* Fix CA-AB production parser down #7441

* update energy storage
  • Loading branch information
t-couery authored Nov 29, 2024
1 parent 078dd35 commit a3aa9ec
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions parsers/CA_AB.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,24 +116,26 @@ def fetch_production(
return validation.validate(
{
"capacity": {
"gas": generation["GAS"]["MC"],
"hydro": generation["HYDRO"]["MC"],
"battery storage": generation["ENERGY STORAGE"]["MC"],
"solar": generation["SOLAR"]["MC"],
"gas": generation["COGENERATION"]["MC"]
+ generation["COMBINED CYCLE"]["MC"]
+ generation["GAS FIRED STEAM"]["MC"]
+ generation["SIMPLE CYCLE"]["MC"],
"wind": generation["WIND"]["MC"],
"solar": generation["SOLAR"]["MC"],
"hydro": generation["HYDRO"]["MC"],
"biomass": generation["OTHER"]["MC"],
"unknown": generation["DUAL FUEL"]["MC"],
"coal": generation["COAL"]["MC"],
"battery storage": generation["ENERGY STORAGE"]["MC"],
},
"datetime": get_csd_report_timestamp(response.text),
"production": {
"gas": generation["GAS"]["TNG"],
"hydro": generation["HYDRO"]["TNG"],
"solar": generation["SOLAR"]["TNG"],
"gas": generation["COGENERATION"]["TNG"]
+ generation["COMBINED CYCLE"]["TNG"]
+ generation["GAS FIRED STEAM"]["TNG"]
+ generation["SIMPLE CYCLE"]["TNG"],
"wind": generation["WIND"]["TNG"],
"solar": generation["SOLAR"]["TNG"],
"hydro": generation["HYDRO"]["TNG"],
"biomass": generation["OTHER"]["TNG"],
"unknown": generation["DUAL FUEL"]["TNG"],
"coal": generation["COAL"]["TNG"],
},
"source": URL.netloc,
"storage": {
Expand Down

0 comments on commit a3aa9ec

Please sign in to comment.