Skip to content

Commit

Permalink
support linear trends in modelcompare
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrakenhoff committed Feb 17, 2023
1 parent 3eac98a commit 205faa9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pastas/modelcompare.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,8 @@ def plot_response(
continue
if response == "step":
step = ml.get_step_response(smn, add_0=True)
if step is None:
continue
self.axes[axn.format(i=j)].plot(
step.index,
step.values,
Expand All @@ -520,6 +522,8 @@ def plot_response(
)
elif response == "block":
block = ml.get_block_response(smn)
if block is None:
continue
self.axes[axn.format(i=j)].semilogx(
block.index,
block.values,
Expand Down

0 comments on commit 205faa9

Please sign in to comment.