Skip to content

Commit

Permalink
fix wrong quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
spjuhel committed Aug 23, 2024
1 parent 9813674 commit 2d98fcf
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions doc/tutorial/climada_engine_unsequa.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
"# Here x_exp is the input uncertainty parameter and exp_func the inputvar.func.\n",
"def exp_func(x_exp, exp_base=exp_base):\n",
" exp = exp_base.copy()\n",
" exp.gdf["value"] *= x_exp\n",
" exp.gdf['value'] *= x_exp\n",
" return exp"
]
},
Expand Down Expand Up @@ -989,7 +989,7 @@
"exp_base.assign_centroids(haz)\n",
"def exp_base_func(x_exp, exp_base):\n",
" exp = exp_base.copy()\n",
" exp.gdf["value"] *= x_exp\n",
" exp.gdf['value'] *= x_exp\n",
" return exp\n",
"from functools import partial\n",
"exp_func = partial(exp_base_func, exp_base=exp_base)"
Expand Down Expand Up @@ -2462,7 +2462,7 @@
"exp_base.assign_centroids(haz)\n",
"def exp_base_func(x_exp, exp_base):\n",
" exp = exp_base.copy()\n",
" exp.gdf["value"] *= x_exp\n",
" exp.gdf['value'] *= x_exp\n",
" return exp\n",
"from functools import partial\n",
"exp_func = partial(exp_base_func, exp_base=exp_base)"
Expand Down Expand Up @@ -2797,7 +2797,7 @@
" from climada.util.constants import ENT_DEMO_TODAY\n",
" entity = Entity.from_excel(ENT_DEMO_TODAY)\n",
" entity.exposures.ref_year = 2018\n",
" entity.exposures.gdf["value"] *= x_ent\n",
" entity.exposures.gdf['value'] *= x_ent\n",
" return entity\n",
"\n",
"# Entity in the future has a +- 10% uncertainty in the cost of all the adapatation measures\n",
Expand Down Expand Up @@ -5267,7 +5267,7 @@
"\n",
"def exp_func(cnt, x_exp, exp_list=exp_list):\n",
" exp = exp_list[int(cnt)].copy()\n",
" exp.gdf["value"] *= x_exp\n",
" exp.gdf['value'] *= x_exp\n",
" return exp\n",
"\n",
"exp_distr = {\"x_exp\": sp.stats.uniform(0.9, 0.2),\n",
Expand Down Expand Up @@ -5519,15 +5519,15 @@
" global exp_base\n",
" if 'exp_base' in globals():\n",
" if isinstance(exp_base, Exposures):\n",
" if exp_base.gdf["filename"] != str(filename):\n",
" if exp_base.gdf['filename'] != str(filename):\n",
" exp_base = Exposures.from_hdf5(filename)\n",
" exp_base.gdf["filename"] = str(filename)\n",
" exp_base.gdf['filename'] = str(filename)\n",
" else:\n",
" exp_base = Exposures.from_hdf5(filename)\n",
" exp_base.gdf["filename"] = str(filename)\n",
" exp_base.gdf['filename'] = str(filename)\n",
"\n",
" exp = exp_base.copy()\n",
" exp.gdf["value"] *= x_exp\n",
" exp.gdf['value'] *= x_exp\n",
" return exp\n",
"\n",
"exp_distr = {\"x_exp\": sp.stats.uniform(0.9, 0.2),\n",
Expand Down Expand Up @@ -5727,4 +5727,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}

0 comments on commit 2d98fcf

Please sign in to comment.