Skip to content

Commit cb35cbd

Browse files
committed
docs: rename function in example
1 parent 87beb7b commit cb35cbd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

examples/example_python_api.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
# sub-folder for the results
1111
output_directory = Path('ehyd_112086_idf_data')
12+
output_directory.mkdir(parents=True, exist_ok=True)
13+
1214
# initialize of the analysis class
1315
idf = HeavyRainfallIndexAnalyse(series_kind=SERIES.PARTIAL, worksheet=METHOD.KOSTRA, extended_durations=True)
1416

@@ -27,7 +29,7 @@
2729

2830
# --------
2931
if _ := 0: # this is just an on/off switch, to only run certain parts of the code.
30-
fig = idf.parameters._interims.plot_series()
32+
fig = idf.parameters.interim_plot_series()
3133
fig.set_size_inches(12, 24)
3234
# fig.savefig(output_directory / 'interims.pdf')
3335
fig.savefig(output_directory / f'interims_{idf.parameters.series_kind}.png')
@@ -118,7 +120,7 @@
118120

119121
# --------
120122
# plotting the IDF curves for JOSS paper
121-
if _ := 1: # this is just an on/off switch, to only run certain parts of the code.
123+
if _ := 0: # this is just an on/off switch, to only run certain parts of the code.
122124
fig, ax = idf.curve_figure(color=True, logx=True, max_duration=60 * 24 * 6, duration_steps_ticks=True, add_interim=False)
123125
ax.grid(ls=':', lw=0.5)
124126
fig.set_size_inches(*fig_size)

0 commit comments

Comments
 (0)