Skip to content

Commit

Permalink
Merge pull request #796 from knutfrode/dev
Browse files Browse the repository at this point in the history
Returning also points_deactivated from plot_timestep, to show deactiv…
  • Loading branch information
knutfrode authored Dec 8, 2021
2 parents bd98494 + 27fe823 commit 7930fe8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions opendrift/models/basemodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -3476,9 +3476,9 @@ def plot_timestep(i):
cd['index_of_last_deactivated_other'] < i],
cd['y_other_deactive'][
cd['index_of_last_deactivated_other'] < i]])
return points, cd['points_other'],
return points, points_deactivated, cd['points_other'],
else:
return points,
return points, points_deactivated,

# Find map coordinates and plot points with empty data
fig, ax, crs, x, y, index_of_first, index_of_last = \
Expand Down Expand Up @@ -3807,9 +3807,9 @@ def plot_timestep(i):
points_other_deactivated.set_data(
x_other_deactive[index_of_last_deactivated_other < i],
z_other_deactive[index_of_last_deactivated_other < i])
return points, points_other
return points, points_deactivated, points_other,
else:
return points
return points, points_deactivated,

PlotColors = (compare is None) and (legend != ['', ''])
if PlotColors:
Expand Down

0 comments on commit 7930fe8

Please sign in to comment.