-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #905 from blue-marble/develop
GridPath v0.13
- Loading branch information
Showing
1,428 changed files
with
19,583 additions
and
4,019 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
13 changes: 7 additions & 6 deletions
13
db/csvs_test_examples/fuels/fuel_chars/1_base_fuel_chars.csv
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,6 +1,7 @@ | ||
fuel,co2_intensity_tons_per_mmbtu | ||
Coal,0.09552 | ||
Gas,0.05306 | ||
Uranium,0 | ||
Cheap_Fuel,0.05306 | ||
Negative_Carbon_Fuel,-0.1 | ||
fuel,co2_intensity_tons_per_mmbtu,fuel_group | ||
Coal,0.09552,Solid | ||
Gas,0.05306,Gas | ||
Uranium,0,Other | ||
Cheap_Fuel,0.05306,Blended | ||
Negative_Carbon_Fuel,-0.1,Gas | ||
Hydrogen,0, |
6 changes: 6 additions & 0 deletions
6
db/csvs_test_examples/fuels/fuel_chars/2_base_fuel_chars_with_different_fuel_groups.csv
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
fuel,co2_intensity_tons_per_mmbtu,fuel_group | ||
Coal,0.09552,Solid | ||
Gas,0.05306,Gas | ||
Uranium,0,Other | ||
Cheap_Fuel,0.05306,Gas | ||
Negative_Carbon_Fuel,-0.1,Gas |
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
3 changes: 3 additions & 0 deletions
3
db/csvs_test_examples/markets/geography_markets/2_two_markets.csv
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
market | ||
Market_Hub | ||
Market_Hub2 |
4 changes: 2 additions & 2 deletions
4
db/csvs_test_examples/markets/load_zone_markets/1_default_market_participation.csv
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,2 +1,2 @@ | ||
load_zone,market | ||
Zone1,Market_Hub | ||
load_zone,market,final_participation_stage | ||
Zone1,Market_Hub, |
3 changes: 3 additions & 0 deletions
3
db/csvs_test_examples/markets/load_zone_markets/2_two_markets_different_stages.csv
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
load_zone,market,final_participation_stage | ||
Zone1,Market_Hub,1 | ||
Zone1,Market_Hub2,2 |
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,3 +1,19 @@ | ||
market,timepoint,market_price | ||
Market_Hub,20200101,10 | ||
Market_Hub,20200102,-10 | ||
market,stage_id,timepoint,market_price | ||
Market_Hub,1,20200101,10 | ||
Market_Hub,1,20200102,-10 | ||
Market_Hub,1,20200201,10 | ||
Market_Hub,1,20200202,-10 | ||
Market_Hub,1,20200301,10 | ||
Market_Hub,1,20200302,-10 | ||
Market_Hub2,1,20200101,1 | ||
Market_Hub2,1,20200102,2 | ||
Market_Hub2,1,20200201,3 | ||
Market_Hub2,1,20200202,2 | ||
Market_Hub2,1,20200301,1 | ||
Market_Hub2,1,20200302,2 | ||
Market_Hub2,2,20200101,3 | ||
Market_Hub2,2,20200102,2 | ||
Market_Hub2,2,20200201,1 | ||
Market_Hub2,2,20200202,2 | ||
Market_Hub2,2,20200301,3 | ||
Market_Hub2,2,20200302,2 |
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,3 +1,19 @@ | ||
market,timepoint,max_market_sales,max_market_purchases | ||
Market_Hub,20200101,10,5 | ||
Market_Hub,20200102,5,10 | ||
market,stage_id,timepoint,max_market_sales,max_market_purchases | ||
Market_Hub,1,20200101,10,5 | ||
Market_Hub,1,20200102,5,10 | ||
Market_Hub,1,20200201,10,5 | ||
Market_Hub,1,20200202,5,10 | ||
Market_Hub,1,20200301,10,5 | ||
Market_Hub,1,20200302,5,10 | ||
Market_Hub2,1,20200101,10,5 | ||
Market_Hub2,1,20200102,5,10 | ||
Market_Hub2,1,20200201,10,5 | ||
Market_Hub2,1,20200202,5,10 | ||
Market_Hub2,1,20200301,10,5 | ||
Market_Hub2,1,20200302,5,10 | ||
Market_Hub2,2,20200101,5,5 | ||
Market_Hub2,2,20200102,2,2 | ||
Market_Hub2,2,20200201,5,5 | ||
Market_Hub2,2,20200202,2,2 | ||
Market_Hub2,2,20200301,5,5 | ||
Market_Hub2,2,20200302,2,2 |
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ Coal,Zone1 | |
Gas_CCGT,Zone1 | ||
Gas_CT,Zone1 | ||
Gas_CCGT_new,Zone1 | ||
Gas_CT_new,Zone1 | ||
Gas_CT_new,Zone1 | ||
DAC,Zone1 |
3 changes: 3 additions & 0 deletions
3
db/csvs_test_examples/policy/carbon_cap/system_carbon_cap_targets/2_no_carbon_allowed.csv
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
carbon_cap_zone,period,subproblem_id,stage_id,carbon_cap | ||
Zone1,2020,1,1,0 | ||
Zone1,2030,1,1,0 |
24 changes: 13 additions & 11 deletions
24
...mples/policy/carbon_tax/project_carbon_tax_allowance/1_project_carbon_tax_allowance_1.csv
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,11 +1,13 @@ | ||
project,period,carbon_tax_allowance_tco2_per_mwh | ||
Coal,2020,10 | ||
Gas_CCGT,2020,5 | ||
Gas_CT,2020,5 | ||
Gas_CCGT_new,2020,5 | ||
Gas_CT_new,2020,5 | ||
Coal,2030,5 | ||
Gas_CCGT,2030,3 | ||
Gas_CT,2030,3 | ||
Gas_CCGT_new,2030,3 | ||
Gas_CT_new,2030,3 | ||
project,period,fuel_group,carbon_tax_allowance_tco2_per_mwh | ||
Coal,2020,Solid,10 | ||
Gas_CCGT,2020,Gas,5 | ||
Gas_CCGT,2020,Blended,2 | ||
Gas_CT,2020,Gas,5 | ||
Gas_CCGT_new,2020,Gas,5 | ||
Gas_CT_new,2020,Gas,5 | ||
Coal,2030,Solid,5 | ||
Gas_CCGT,2030,Gas,3 | ||
Gas_CCGT,2030,Blended,2 | ||
Gas_CT,2030,Gas,3 | ||
Gas_CCGT_new,2030,Gas,3 | ||
Gas_CT_new,2030,Gas,3 |
4 changes: 4 additions & 0 deletions
4
db/csvs_test_examples/policy/fuel_burn_limits/bas/1_base_fuel_burn_bas.csv
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fuel,fuel_burn_limit_ba,min_allow_violation,min_violation_penalty_per_unit,max_allow_violation,max_violation_penalty_per_unit,relative_max_allow_violation,relative_max_violation_penalty_per_unit | ||
Gas,Gas_Burn_BA,0,0,0,0,0,0 | ||
Coal,Coal_Burn_BA,0,0,0,0,0,0 | ||
Hydrogen,Hydrogen_Burn_BA,0,0,0,0,0,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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Copyright 2016-2022 Blue Marble Analytics LLC. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" balancing_areasIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
""" | ||
**Relevant tables:** | ||
+-------------------------------+----------------------------------------------------+ | ||
|:code:`scenarios` table column |:code:`fuel_ba_scenario_id` | | ||
+-------------------------------+----------------------------------------------------+ | ||
|:code:`scenario` table feature |:code:`of_fuel_burn_limit` | | ||
+-------------------------------+----------------------------------------------------+ | ||
|:code:`subscenario_` table |:code:`subscenarios_geography_fuel_balancing_areas` | | ||
+-------------------------------+----------------------------------------------------+ | ||
|:code:`input_` tables |:code:`inputs_geography_fuel_balancing_areas` | | ||
+-------------------------------+----------------------------------------------------+ | ||
""" | ||
|
||
if __name__ == "__main__": | ||
print(__doc__) |
3 changes: 3 additions & 0 deletions
3
db/csvs_test_examples/policy/fuel_burn_limits/limits/1_base_fuel_burn_limits.csv
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fuel,fuel_burn_limit_ba,subproblem_id,stage_id,balancing_type_horizon,horizon,fuel_burn_min_unit,fuel_burn_max_unit,relative_fuel_burn_max_fuel,relative_fuel_burn_max_ba,fraction_of_relative_fuel_burn_max_fuel_ba | ||
Gas,Gas_Burn_BA,1,1,day,202001,,5653.976611,,, | ||
Coal,Coal_Burn_BA,1,1,day,202001,,0,,, |
3 changes: 3 additions & 0 deletions
3
db/csvs_test_examples/policy/fuel_burn_limits/limits/2_coal_as_fraction_of_gas.csv
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fuel,fuel_burn_limit_ba,subproblem_id,stage_id,balancing_type_horizon,horizon,fuel_burn_min_unit,fuel_burn_max_unit,relative_fuel_burn_max_fuel,relative_fuel_burn_max_ba,fraction_of_relative_fuel_burn_max_fuel_ba | ||
Gas,Gas_Burn_BA,1,1,day,202001,,5653.976611,,, | ||
Coal,Coal_Burn_BA,1,1,day,202001,,,Gas,Gas_Burn_BA,0 |
3 changes: 3 additions & 0 deletions
3
db/csvs_test_examples/policy/fuel_burn_limits/limits/3_hydrogen_wo_production.csv
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fuel,fuel_burn_limit_ba,subproblem_id,stage_id,balancing_type_horizon,horizon,fuel_burn_min_unit,fuel_burn_max_unit,relative_fuel_burn_max_fuel,relative_fuel_burn_max_ba,fraction_of_relative_fuel_burn_max_fuel_ba | ||
Hydrogen,Hydrogen_Burn_BA,1,1,timepoint,20200101,0,0,,, | ||
Hydrogen,Hydrogen_Burn_BA,1,1,timepoint,20200102,0,0,,, |
35 changes: 35 additions & 0 deletions
35
db/csvs_test_examples/policy/fuel_burn_limits/limits/doc.py
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Copyright 2016-2020 Blue Marble Analytics LLC. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
""" | ||
**Relevant tables:** | ||
+-------------------------------+---------------------------------------------+ | ||
|:code:`scenarios` table column |:code:`fuel_burn_limit_scenario_id` | | ||
+-------------------------------+---------------------------------------------+ | ||
|:code:`scenario` table feature |:code:`of_fuel_burn_limit` | | ||
+-------------------------------+---------------------------------------------+ | ||
|:code:`subscenario_` table |:code:`subscenarios_system_fuel_burn_limits` | | ||
+-------------------------------+---------------------------------------------+ | ||
|:code:`inputs_` table |:code:`inputs_system_fuel_burn_limits` | | ||
+-------------------------------+---------------------------------------------+ | ||
""" | ||
|
||
# TODO: allow using 0 as to horizon to apply the same limit to all horizon in a | ||
# balancing type | ||
|
||
if __name__ == "__main__": | ||
print(__doc__) |
8 changes: 8 additions & 0 deletions
8
..._test_examples/policy/fuel_burn_limits/project_bas/1_base_fuel_burn_limit_project_bas.csv
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
project,fuel,fuel_burn_limit_ba | ||
Coal,Coal,Coal_Burn_BA | ||
Gas_CCGT,Gas,Gas_Burn_BA | ||
Gas_CT,Gas,Gas_Burn_BA | ||
Gas_CCGT_new,Gas,Gas_Burn_BA | ||
Gas_CT_new,Gas,Gas_Burn_BA | ||
Hydrogen_Prod,Hydrogen,Hydrogen_Burn_BA | ||
Hydrogen_Plant,Hydrogen,Hydrogen_Burn_BA |
32 changes: 32 additions & 0 deletions
32
db/csvs_test_examples/policy/fuel_burn_limits/project_bas/doc.py
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Copyright 2016-2020 Blue Marble Analytics LLC. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
""" | ||
**Relevant tables:** | ||
+-------------------------------+-------------------------------------------------------------+ | ||
|:code:`scenarios` table column |:code:`project_fuel_burn_limit_ba_scenario_id` | | ||
+-------------------------------+-------------------------------------------------------------+ | ||
|:code:`scenario` table feature |:code:`of_fuel_burn_limit` | | ||
+-------------------------------+-------------------------------------------------------------+ | ||
|:code:`subscenario_` table |:code:`subscenarios_project_fuel_burn_limit_balancing_areas` | | ||
+-------------------------------+-------------------------------------------------------------+ | ||
|:code:`input_` tables |:code:`inputs_project_fuel_burn_limit_balancing_areas` | | ||
+-------------------------------+-------------------------------------------------------------+ | ||
""" | ||
|
||
if __name__ == "__main__": | ||
print(__doc__) |
3 changes: 3 additions & 0 deletions
3
...tandard/geography_performance_standard_zones/1_geography_performance_standard_zones_1.csv
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
performance_standard_zone,allow_violation,violation_penalty_per_emission | ||
PS_Zone1,0,0 | ||
PS_Zone2,0,0 |
3 changes: 3 additions & 0 deletions
3
...ce_standard/project_performance_standard_zones/1_project_performance_standard_zones_1.csv
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
project,performance_standard_zone | ||
Gas_CCGT,PS_Zone1 | ||
Gas_CT,PS_Zone2 |
Oops, something went wrong.