Skip to content

Commit 86b633a

Browse files
authored
Merge branch 'develop' into update/pre-commit-hooks
2 parents 51e1a03 + 58d84f7 commit 86b633a

321 files changed

Lines changed: 2710 additions & 12985 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/advanced-guide/extending-muse.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@
157157
"[[sectors.residential.outputs]]\n",
158158
"quantity = \"consumption_zero\"\n",
159159
"sink = \"txt\"\n",
160+
"overwrite = true\n",
160161
"filename = \"{cwd}/{default_output_dir}/{Sector}{Quantity}{year}{suffix}\"\n",
161162
"```\n",
162163
"\n",
@@ -194,7 +195,7 @@
194195
" \"overwrite\": True,\n",
195196
" \"filename\": \"{cwd}/{default_output_dir}/{Sector}{Quantity}{year}{suffix}\",\n",
196197
"}\n",
197-
"settings[\"sectors\"][\"residential\"][\"outputs\"].append(new_output)\n",
198+
"settings[\"sectors\"][\"residential\"].setdefault(\"outputs\", []).append(new_output)\n",
198199
"dump(settings, (model_path / \"modified_settings.toml\").open(\"w\"))\n",
199200
"settings"
200201
]
@@ -373,7 +374,6 @@
373374
"new_output = {\n",
374375
" \"quantity\": \"capacity\",\n",
375376
" \"sink\": \"aggregate\",\n",
376-
" \"index\": False,\n",
377377
" \"filename\": \"{cwd}/{default_output_dir}/Cache{Quantity}.csv\",\n",
378378
"}\n",
379379
"settings[\"outputs_cache\"] = []\n",
@@ -671,7 +671,7 @@
671671
"name": "python",
672672
"nbconvert_exporter": "python",
673673
"pygments_lexer": "ipython3",
674-
"version": "3.12.3"
674+
"version": "3.12.4"
675675
},
676676
"vscode": {
677677
"interpreter": {

docs/tutorial-code/1-add-new-technology/1-introduction/Results/Gas/Capacity.csv

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/tutorial-code/1-add-new-technology/1-introduction/Results/MCACapacity.csv

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ A1,6.00000000000,R1,2025,R1,power,gasCCGT,newcapa,2050
5151
A1,6.00000000000,R1,2030,R1,power,solarPV,newcapa,2050
5252
A1,6.00000000000,R1,2035,R1,power,solarPV,newcapa,2050
5353
A1,6.00000000000,R1,2040,R1,power,solarPV,newcapa,2050
54-
A1,10.00000000000,R1,2045,R1,power,solarPV,newcapa,2050
55-
A1,1.00000000000,R1,2045,R1,power,windturbine,newcapa,2050
54+
A1,11.00000000000,R1,2045,R1,power,solarPV,newcapa,2050
5655
A1,1.73530000000,R1,2020,R1,gas,gassupply1,newcapa,2050
5756
A1,9.28910000000,R1,2025,R1,gas,gassupply1,newcapa,2050
5857
A1,7.47410000000,R1,2030,R1,gas,gassupply1,newcapa,2050

docs/tutorial-code/1-add-new-technology/1-introduction/Results/MCAPrices.csv

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -143,27 +143,27 @@ electricity,all-week,evening,all-year,18.12650000000,R1,5,MUS$2010/PJ,2045
143143
gas,all-week,evening,all-year,0.47220000000,R1,5,MUS$2010/PJ,2045
144144
heat,all-week,evening,all-year,7.49110000000,R1,5,MUS$2010/PJ,2045
145145
CO2f,all-week,evening,all-year,0.35390000000,R1,5,MUS$2010/kt,2045
146-
electricity,all-week,night,all-year,19.68940000000,R1,0,MUS$2010/PJ,2050
146+
electricity,all-week,night,all-year,19.68400000000,R1,0,MUS$2010/PJ,2050
147147
gas,all-week,night,all-year,0.47220000000,R1,0,MUS$2010/PJ,2050
148-
heat,all-week,night,all-year,8.11630000000,R1,0,MUS$2010/PJ,2050
148+
heat,all-week,night,all-year,8.11410000000,R1,0,MUS$2010/PJ,2050
149149
CO2f,all-week,night,all-year,0.43510000000,R1,0,MUS$2010/kt,2050
150-
electricity,all-week,morning,all-year,19.68940000000,R1,1,MUS$2010/PJ,2050
150+
electricity,all-week,morning,all-year,19.68400000000,R1,1,MUS$2010/PJ,2050
151151
gas,all-week,morning,all-year,0.47220000000,R1,1,MUS$2010/PJ,2050
152-
heat,all-week,morning,all-year,8.11630000000,R1,1,MUS$2010/PJ,2050
152+
heat,all-week,morning,all-year,8.11410000000,R1,1,MUS$2010/PJ,2050
153153
CO2f,all-week,morning,all-year,0.43510000000,R1,1,MUS$2010/kt,2050
154-
electricity,all-week,afternoon,all-year,19.68940000000,R1,2,MUS$2010/PJ,2050
154+
electricity,all-week,afternoon,all-year,19.68400000000,R1,2,MUS$2010/PJ,2050
155155
gas,all-week,afternoon,all-year,0.47220000000,R1,2,MUS$2010/PJ,2050
156-
heat,all-week,afternoon,all-year,8.11630000000,R1,2,MUS$2010/PJ,2050
156+
heat,all-week,afternoon,all-year,8.11410000000,R1,2,MUS$2010/PJ,2050
157157
CO2f,all-week,afternoon,all-year,0.43510000000,R1,2,MUS$2010/kt,2050
158-
electricity,all-week,early-peak,all-year,19.68940000000,R1,3,MUS$2010/PJ,2050
158+
electricity,all-week,early-peak,all-year,19.68400000000,R1,3,MUS$2010/PJ,2050
159159
gas,all-week,early-peak,all-year,0.47220000000,R1,3,MUS$2010/PJ,2050
160-
heat,all-week,early-peak,all-year,8.11630000000,R1,3,MUS$2010/PJ,2050
160+
heat,all-week,early-peak,all-year,8.11410000000,R1,3,MUS$2010/PJ,2050
161161
CO2f,all-week,early-peak,all-year,0.43510000000,R1,3,MUS$2010/kt,2050
162-
electricity,all-week,late-peak,all-year,19.68940000000,R1,4,MUS$2010/PJ,2050
162+
electricity,all-week,late-peak,all-year,19.68400000000,R1,4,MUS$2010/PJ,2050
163163
gas,all-week,late-peak,all-year,0.47220000000,R1,4,MUS$2010/PJ,2050
164-
heat,all-week,late-peak,all-year,8.11630000000,R1,4,MUS$2010/PJ,2050
164+
heat,all-week,late-peak,all-year,8.11410000000,R1,4,MUS$2010/PJ,2050
165165
CO2f,all-week,late-peak,all-year,0.43510000000,R1,4,MUS$2010/kt,2050
166-
electricity,all-week,evening,all-year,19.68940000000,R1,5,MUS$2010/PJ,2050
166+
electricity,all-week,evening,all-year,19.68400000000,R1,5,MUS$2010/PJ,2050
167167
gas,all-week,evening,all-year,0.47220000000,R1,5,MUS$2010/PJ,2050
168-
heat,all-week,evening,all-year,8.11630000000,R1,5,MUS$2010/PJ,2050
168+
heat,all-week,evening,all-year,8.11410000000,R1,5,MUS$2010/PJ,2050
169169
CO2f,all-week,evening,all-year,0.43510000000,R1,5,MUS$2010/kt,2050

docs/tutorial-code/1-add-new-technology/1-introduction/Results/Power/Capacity.csv

Lines changed: 0 additions & 29 deletions
This file was deleted.

docs/tutorial-code/1-add-new-technology/1-introduction/Results/Residential/Capacity.csv

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/tutorial-code/1-add-new-technology/1-introduction/Results/Residential/Supply.csv

Lines changed: 0 additions & 91 deletions
This file was deleted.

docs/tutorial-code/1-add-new-technology/1-introduction/settings.toml

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ tolerance = 0.1
1414
tolerance_unmet_demand = -0.1
1515

1616
[[outputs]]
17-
quantity = "prices"
17+
quantity = "capacity"
1818
sink = "aggregate"
1919
filename = "{cwd}/{default_output_dir}/MCA{Quantity}.csv"
2020

2121
[[outputs]]
22-
quantity = "capacity"
22+
quantity = "prices"
2323
sink = "aggregate"
2424
filename = "{cwd}/{default_output_dir}/MCA{Quantity}.csv"
2525

@@ -55,18 +55,6 @@ constraints = [
5555
demand_share = "standard_demand" # Optional, default to standard_demand
5656
forecast = 5 # Optional, defaults to 5
5757

58-
[[sectors.residential.outputs]]
59-
filename = '{cwd}/{default_output_dir}/{Sector}/{Quantity}.csv'
60-
quantity = "capacity"
61-
sink = 'aggregate'
62-
63-
[[sectors.residential.outputs]]
64-
filename = '{cwd}/{default_output_dir}/{Sector}/{Quantity}.csv'
65-
sink = 'aggregate'
66-
quantity.name = "supply"
67-
quantity.sum_over = "timeslice"
68-
quantity.drop = ["comm_usage", "units_prices"]
69-
7058
[sectors.power]
7159
type = 'default'
7260
priority = 2
@@ -81,11 +69,6 @@ existing_capacity = '{path}/technodata/power/ExistingCapacity.csv'
8169
lpsolver = "scipy"
8270
demand_share = "standard_demand"
8371

84-
[[sectors.power.outputs]]
85-
filename = '{cwd}/{default_output_dir}/{Sector}/{Quantity}.csv'
86-
quantity = "capacity"
87-
sink = 'aggregate'
88-
8972
[sectors.gas]
9073
type = 'default'
9174
priority = 3
@@ -100,11 +83,6 @@ existing_capacity = '{path}/technodata/gas/ExistingCapacity.csv'
10083
lpsolver = "scipy"
10184
demand_share = "standard_demand"
10285

103-
[[sectors.gas.outputs]]
104-
filename = '{cwd}/{default_output_dir}/{Sector}/{Quantity}.csv'
105-
quantity = "capacity"
106-
sink = 'aggregate'
107-
10886
[sectors.residential_presets]
10987
type = 'presets'
11088
priority = 0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
ProcessName,RegionName,Time,cap_par,cap_exp,fix_par,fix_exp,var_par,var_exp,MaxCapacityAddition,MaxCapacityGrowth,TotalCapacityLimit,TechnicalLife,UtilizationFactor,ScalingSize,efficiency,InterestRate,Type,Fuel,EndUse,Agent1
22
Unit,-,Year,MUS$2010/PJ_a,-,MUS$2010/PJ,-,MUS$2010/PJ,-,PJ,%,PJ,Years,-,PJ,%,-,-,-,-,New
3-
gassupply1,R1,2020,0,1,0,1,2.55,1,5,1,60,35,0.9,0.00000189,86,0.1,energy,gas,gas,1
3+
gassupply1,R1,2020,0,1,0,1,2.55,1,10,1,100,35,0.9,0.00000189,86,0.1,energy,gas,gas,1
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ProcessName,RegionName,Time,cap_par,cap_exp,fix_par,fix_exp,var_par,var_exp,MaxCapacityAddition,MaxCapacityGrowth,TotalCapacityLimit,TechnicalLife,UtilizationFactor,ScalingSize,efficiency,InterestRate,Type,Fuel,EndUse,Agent1
22
Unit,-,Year,MUS$2010/PJ_a,-,MUS$2010/PJ,-,MUS$2010/PJ,-,PJ,%,PJ,Years,-,PJ,%,-,-,-,-,New
3-
gasCCGT,R1,2020,23.78234399,1,0,1,0,1,2,1,60,35,0.9,0.00000189,86,0.1,energy,gas,electricity,1
4-
windturbine,R1,2020,36.30771182,1,0,1,0,1,2,1,60,25,0.4,0.00000189,86,0.1,energy,wind,electricity,1
5-
solarPV,R1,2020,30,1,0,1,0,1,2,1,60,25,0.4,0.00000189,86,0.1,energy,solar,electricity,1
3+
gasCCGT,R1,2020,23.78234399,1,0,1,0,1,10,1,100,35,0.9,0.00000189,86,0.1,energy,gas,electricity,1
4+
windturbine,R1,2020,36.30771182,1,0,1,0,1,10,1,100,25,0.4,0.00000189,86,0.1,energy,wind,electricity,1
5+
solarPV,R1,2020,30,1,0,1,0,1,10,1,100,25,0.4,0.00000189,86,0.1,energy,solar,electricity,1

0 commit comments

Comments
 (0)