Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian Fröhlich <[email protected]>
  • Loading branch information
dweindl and FFroehlich authored Jan 2, 2024
1 parent 3f7f5bc commit 70f3c35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/sdist/amici/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def plot_state_trajectories(
elif model is not None and prefer_names:
labels = np.asarray(model.getStateNames())[list(state_indices)]
labels = [
l if l else model.getStateNames()[ix]
l if l else model.getStateIds()[ix]
for ix, l in enumerate(labels)
]
elif model is not None:
Expand Down Expand Up @@ -116,7 +116,7 @@ def plot_observable_trajectories(
list(observable_indices)
]
labels = [
l if l else model.getObservableNames()[ix]
l if l else model.getObservableIds()[ix]
for ix, l in enumerate(labels)
]
elif model is not None:
Expand Down

0 comments on commit 70f3c35

Please sign in to comment.