Skip to content

Why does Pastas recompute the simulation when tmin/tmax are provided in plot methods? #914

Answered by dbrakenhoff
dbrakenhoff asked this question in Q&A
Discussion options

You must be logged in to vote

This is a really good question. We discussed this during a Pastas developers meeting, and it took us a while to remember that this is intentional :).

The short answer is: we want users to be able to create plots with simulations outside of the calibration period of the model.

Say we have data from 1980 to 2020, but we want to calibrate on the period 2000-2010

# we build some model, ml
ml.solve(tmin="2000", tmax="2010")

Now we can inspect the results of the calibration:

ml.plots.results()

But let's say we want to inspect how well our model is able to simulate the period after 2010. This requires recomputing the simulation.

ml.plots.results(tmin="2010", tmax="2020")

Similarly, the same goes…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by martinvonk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Indicates that an issue, pull request, or discussion needs more information
1 participant