Skip to content

Commit

Permalink
Fix calculation of grid_efficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 authored and khaeru committed Jan 7, 2025
1 parent a99a194 commit 0109580
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
8 changes: 4 additions & 4 deletions tutorial/westeros/westeros_historical_new_capacity.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,9 @@
"source": [
"# We know that there are losses that occur when electricity is transmitted via the\n",
"# `grid`.\n",
"grid_eff = float(\n",
"grid_eff = 1 / float(\n",
" scenario.par(\n",
" \"output\",\n",
" \"input\",\n",
" filters={\n",
" \"year_vtg\": scenario.firstmodelyear,\n",
" \"year_act\": scenario.firstmodelyear,\n",
Expand Down Expand Up @@ -323,7 +323,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Each year within the historical 10 year period, a 11.11 GW `\"coal_ppl\"` must be added to meet the demand of the `firstmodelyear`. Therefore, the value of `\"historical_new_capacity\"` is calculated to `\"historical_new_capacity\" = demand_of_firstmodelyear / \"duration_period\"`."
"Each year within the historical 10 year period, a 6.11 GW `\"coal_ppl\"` must be added to meet the demand of the `firstmodelyear`. Therefore, the value of `\"historical_new_capacity\"` is calculated to `\"historical_new_capacity\" = demand_of_firstmodelyear / \"duration_period\"`."
]
},
{
Expand All @@ -344,7 +344,7 @@
")\n",
"print(\n",
" \"The `'historical_new_capacity'` for `coal_ppl` is set to \"\n",
" f\"{round(historical_new_capacity, 2)}\"\n",
" f\"{round(historical_new_capacity, 2)} {df[\"unit\"].values}.\"\n",
")\n",
"scenario.add_par(\"historical_new_capacity\", df)"
]
Expand Down

0 comments on commit 0109580

Please sign in to comment.