Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Updated script to filter NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Sep 15, 2021
1 parent 5e5ebd1 commit e2e1cde
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/symba_mars_disk/aescattermovie.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ def setup_plot(self):
def data_stream(self, frame=0):
while True:
d = self.ds.isel(time=frame)

d = d.where(d['radius'] < self.Rcb, drop=True)
d = d.where(np.invert(np.isnan(d['a'])), drop=True)
d['radmarker'] = (d['radius'] / self.Rcb) * radscale
radius = d['radmarker'].values

Expand Down

0 comments on commit e2e1cde

Please sign in to comment.