Skip to content

Commit cb314a3

Browse files
bugfix for failing optimizations
1 parent 6cde25e commit cb314a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sbmlsim/fit/analysis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,8 +916,9 @@ def plot_traces(self, path: Path) -> None:
916916

917917
for run in range(self.optres.size):
918918
df_run = self.optres.df_traces[self.optres.df_traces.run == run]
919+
# prepare plot for traces
919920
ax.plot(
920-
len(df_run) - 1, df_run.cost.values[-1], "o", color="black", alpha=0.8
921+
len(df_run) - 1, df_run.cost.max(skipna=True), "o", color="black", alpha=0.8
921922
)
922923

923924
ax.set_xlabel("Optimization step")

0 commit comments

Comments
 (0)