Skip to content

Commit 3ade4b9

Browse files
committed
CHG: remove non-interpolated time series from tutorial 5 due to runtime issues
1 parent adba576 commit 3ade4b9

2 files changed

Lines changed: 2 additions & 16 deletions

File tree

tutorial3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def _(dt, model, osecir, t0, tmax):
147147
@app.cell
148148
def _(mo):
149149
mo.md(r"""
150-
Subsequently, we interpolate the simulated time series to full days using the linear interpolation function:
150+
Because we use an adaptive integrator as default, the result time series does not have equidistant time steps. If we however want to have values at predefined time points, MEmilio provides the functionality to linearly interpolate a time series. You can give the function the specific time points you want the results to be interpolated to or use the default setting which interpolates to full days.
151151
""")
152152
return
153153

tutorial5.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -169,24 +169,10 @@ def _(mo):
169169
def _(dt, model, osecir, t0, tmax):
170170
# Simulate model from t0 to tmax with initial step size dt
171171
result = osecir.simulate(t0, tmax, dt, model)
172-
result.print_table()
173-
return (result,)
174-
175-
176-
@app.cell
177-
def _(mo):
178-
mo.md(r"""
179-
Because we use an adaptive integrator as default, the result time series does not have equidistant time steps. If we however want to have values at predefined time points, MEmilio provides the functionality to linearly interpolate a time series. You can give the function the specific time points you want the results to be interpolated to or use the default setting which interpolates to full days.
180-
""")
181-
return
182-
183-
184-
@app.cell
185-
def _(osecir, result):
186172
# Interpolate result to full days
187173
interpolated_result = osecir.interpolate_simulation_result(result)
188174
interpolated_result.print_table()
189-
return
175+
return (result,)
190176

191177

192178
@app.cell

0 commit comments

Comments
 (0)