-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ported some doctests out of utilities into proper unit tests to make …
…them more robust. They had been failing off and on for a while, especially when pyomo changed its output formatting. I also tweaked the "no emissions" value in dispatch export from None to zero to avoid a weird pandas Future warning that occurred in the examples/storage test when every value in the emissions column was None.
- Loading branch information
1 parent
d0122f6
commit 968c98e
Showing
6 changed files
with
55 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
generation_project,timestamp,DispatchEmissions_tCO2_per_typical_yr,DispatchGen_MW,Energy_GWh_typical_yr,VariableCost_per_yr,gen_dbid,gen_energy_source,gen_load_zone,gen_tech,period,tp_weight_in_year_hrs | ||
S-Geothermal,2025011600,,4.44411428571,19.4785529143,561566.680519,33.0,Geothermal,South,Geothermal,2020,4383.0 | ||
S-Geothermal,2025011512,,4.44411428571,19.4785529143,561566.680519,33.0,Geothermal,South,Geothermal,2020,4383.0 | ||
S-Central_PV-1,2025011600,,0.0,0.0,0.0,41.0,Solar,South,Central_PV,2020,4383.0 | ||
Battery_Storage,2025011512,,2.95808571429,12.9652896857,129.652896857,Battery_Storage,Electricity,South,Battery_Storage,2020,4383.0 | ||
S-Central_PV-1,2025011512,,0.5978,2.6201574,0.0,41.0,Solar,South,Central_PV,2020,4383.0 | ||
Battery_Storage,2025011600,,0.0,0.0,0.0,Battery_Storage,Electricity,South,Battery_Storage,2020,4383.0 | ||
S-Geothermal,2025011600,0,4.44411428571429,19.478552914285736,561566.6805188577,33.0,Geothermal,South,Geothermal,2020,4383.0 | ||
S-Geothermal,2025011512,0,4.44411428571429,19.478552914285736,561566.6805188577,33.0,Geothermal,South,Geothermal,2020,4383.0 | ||
S-Central_PV-1,2025011600,0,0.0,0.0,0.0,41.0,Solar,South,Central_PV,2020,4383.0 | ||
Battery_Storage,2025011512,0,2.95808571428571,12.965289685714268,129.65289685714268,Battery_Storage,Electricity,South,Battery_Storage,2020,4383.0 | ||
S-Central_PV-1,2025011512,0,0.5978,2.6201574,0.0,41.0,Solar,South,Central_PV,2020,4383.0 | ||
Battery_Storage,2025011600,0,0.0,0.0,0.0,Battery_Storage,Electricity,South,Battery_Storage,2020,4383.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
gen_tech,gen_energy_source,period,Energy_GWh_typical_yr,VariableCost_per_yr,DispatchEmissions_tCO2_per_typical_yr | ||
Battery_Storage,Electricity,2020,12.9652896857,129.652896857, | ||
Central_PV,Solar,2020,2.6201574,0.0, | ||
Geothermal,Geothermal,2020,38.9571058286,1123133.36104, | ||
Battery_Storage,Electricity,2020,12.965289685714268,129.65289685714268,0 | ||
Central_PV,Solar,2020,2.6201574,0.0,0 | ||
Geothermal,Geothermal,2020,38.95710582857147,1123133.3610377153,0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
gen_tech,gen_load_zone,gen_energy_source,period,Energy_GWh_typical_yr,VariableCost_per_yr,DispatchEmissions_tCO2_per_typical_yr | ||
Battery_Storage,South,Electricity,2020,12.9652896857,129.652896857, | ||
Central_PV,South,Solar,2020,2.6201574,0.0, | ||
Geothermal,South,Geothermal,2020,38.9571058286,1123133.36104, | ||
Battery_Storage,South,Electricity,2020,12.965289685714268,129.65289685714268,0 | ||
Central_PV,South,Solar,2020,2.6201574,0.0,0 | ||
Geothermal,South,Geothermal,2020,38.95710582857147,1123133.3610377153,0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters