Skip to content

Commit 4c10da0

Browse files
committed
Update helper tuto
1 parent 07bef9c commit 4c10da0

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

doc/user-guide/climada_engine_unsequa_helper.ipynb

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"- EN: mutliplicative noise (inhomogeneous)\n",
6868
"> The value of each exposure point is independently multiplied by a random number sampled uniformly from a distribution with (min, max) = bounds_noise. EN is the value of the seed for the uniform random number generator.\n",
6969
"- EL: sample uniformly from exposure list\n",
70-
"> From the provided list of exposure is elements are uniformly sampled. For example, LitPop instances with different exponents.\n",
70+
"> Uniformly sample one element from the provided list of exposures. For example, LitPop instances with different exponents.\n",
7171
"\n",
7272
"\n",
7373
"If a bounds is None, this parameter is assumed to have no uncertainty."
@@ -201,7 +201,7 @@
201201
},
202202
{
203203
"cell_type": "code",
204-
"execution_count": 6,
204+
"execution_count": null,
205205
"id": "802ac379-39a0-476d-b068-36520d03a459",
206206
"metadata": {
207207
"ExecuteTime": {
@@ -226,8 +226,8 @@
226226
" print(\"\\n Computing litpop for m=%d, n=%d \\n\" % (m, n))\n",
227227
" litpop_kwargs[\"exponents\"] = (m, n)\n",
228228
" exp = LitPop.from_countries(**litpop_kwargs)\n",
229-
" exp.gdf[\"impf_\" + haz.haz_type] = impf_id\n",
230-
" exp.gdf.drop(\"impf_\", axis=1, inplace=True)\n",
229+
" exp.data[\"impf_\" + haz.haz_type] = impf_id\n",
230+
" exp.data.drop(\"impf_\", axis=1, inplace=True)\n",
231231
" if value_unit is not None:\n",
232232
" exp.value_unit = value_unit\n",
233233
" exp.assign_centroids(haz, **assign_centr_kwargs)\n",
@@ -897,7 +897,7 @@
897897
"- HF: scale the frequency of all events (homogeneously)\n",
898898
"> The frequency of all events is multiplied by a number sampled uniformly from a distribution with (min, max) = bounds_freq\n",
899899
"- HL: sample uniformly from hazard list\n",
900-
"> From the provided list of hazard is elements are uniformly sampled. For example, Hazards outputs from dynamical models for different input factors.\n",
900+
"> Uniformly sample one element from the provided list of hazards. For example, Hazards outputs from dynamical models for different input factors.\n",
901901
"\n",
902902
"If a bounds is None, this parameter is assumed to have no uncertainty."
903903
]
@@ -1146,14 +1146,14 @@
11461146
},
11471147
"source": [
11481148
"The following types of uncertainties can be added:\n",
1149-
"- MDD: scale the mdd (homogeneously)\n",
1149+
"- MDD: scale the Mean Damage Degree MDD (homogeneously)\n",
11501150
"> The value of mdd at each intensity is multiplied by a number sampled uniformly from a distribution with (min, max) = bounds_mdd\n",
1151-
"- PAA: scale the paa (homogeneously)\n",
1151+
"- PAA: scale the Percentage of Affected Assets PAA (homogeneously)\n",
11521152
"> The value of paa at each intensity is multiplied by a number sampled uniformly from a distribution with (min, max) = bounds_paa\n",
11531153
"- IFi: shift the intensity (homogeneously)\n",
11541154
"> The value intensity are all summed with a random number sampled uniformly from a distribution with (min, max) = bounds_int\n",
11551155
"- IL: sample uniformly from impact function set list\n",
1156-
"> From the provided list of impact function sets elements are uniformly sampled. For example, impact functions obtained from different calibration methods.\n",
1156+
"> Uniformly sample one element from the provided list of impact function sets. For example, impact functions obtained from different calibration methods.\n",
11571157
"\n",
11581158
"\n",
11591159
"If a bounds is None, this parameter is assumed to have no uncertainty."
@@ -1268,13 +1268,15 @@
12681268
"- EN: mutliplicative noise (inhomogeneous)\n",
12691269
"> The value of each exposure point is independently multiplied by a random number sampled uniformly from a distribution with (min, max) = bounds_noise. EN is the value of the seed for the uniform random number generator.\n",
12701270
"- EL: sample uniformly from exposure list\n",
1271-
"> From the provided list of exposure is elements are uniformly sampled. For example, LitPop instances with different exponents.\n",
1271+
"> Uniformly sample one element from the provided list of exposures. For example, LitPop instances with different exponents.\n",
12721272
"- MDD: scale the mdd (homogeneously)\n",
12731273
"> The value of mdd at each intensity is multiplied by a number sampled uniformly from a distribution with (min, max) = bounds_mdd\n",
12741274
"- PAA: scale the paa (homogeneously)\n",
12751275
"> The value of paa at each intensity is multiplied by a number sampled uniformly from a distribution with (min, max) = bounds_paa\n",
12761276
"- IFi: shift the intensity (homogeneously)\n",
12771277
"> The value intensity are all summed with a random number sampled uniformly from a distribution with (min, max) = bounds_int\n",
1278+
"- IL: sample uniformly from impact function set list\n",
1279+
"> Uniformly sample one element from the provided list of impact function sets. For example, impact functions obtained from different calibration methods.\n",
12781280
"\n",
12791281
"\n",
12801282
"If a bounds is None, this parameter is assumed to have no uncertainty."
@@ -1819,15 +1821,15 @@
18191821
"- EN: mutliplicative noise (inhomogeneous)\n",
18201822
"> The value of each exposure point is independently multiplied by a random number sampled uniformly from a distribution with (min, max) = bounds_noise. EN is the value of the seed for the uniform random number generator.\n",
18211823
"- EL: sample uniformly from exposure list\n",
1822-
"> From the provided list of exposure is elements are uniformly sampled. For example, LitPop instances with different exponents.\n",
1824+
"> Uniformly sample one element from the provided list of exposures. For example, LitPop instances with different exponents.\n",
18231825
"- MDD: scale the mdd (homogeneously)\n",
18241826
"> The value of mdd at each intensity is multiplied by a number sampled uniformly from a distribution with (min, max) = bounds_mdd\n",
18251827
"- PAA: scale the paa (homogeneously)\n",
18261828
"> The value of paa at each intensity is multiplied by a number sampled uniformly from a distribution with (min, max) = bounds_paa\n",
18271829
"- IFi: shift the impact function intensity (homogeneously)\n",
18281830
"> The value intensity are all summed with a random number sampled uniformly from a distribution with (min, max) = bounds_impfi\n",
18291831
"- IL: sample uniformly from impact function set list\n",
1830-
"> From the provided list of impact function sets elements are uniformly sampled. For example, impact functions obtained from different calibration methods.\n",
1832+
"> Uniformly sample one element from the provided list of impact function sets. For example, impact functions obtained from different calibration methods.\n",
18311833
"\n",
18321834
"\n",
18331835
"If a bounds is None, this parameter is assumed to have no uncertainty."

0 commit comments

Comments
 (0)