Skip to content

Commit

Permalink
fix median/nanmedian swap
Browse files Browse the repository at this point in the history
  • Loading branch information
adrn committed Jun 21, 2021
1 parent e0f8e20 commit eb4aea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gala/dynamics/actionangle_staeckel.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ def get_staeckel_fudge_delta(potential, w, median=True):

# Median over time if the inputs were orbits
if len(delta.shape) > 1 and median:
delta = np.median(delta, axis=1)
delta = np.nanmedian(delta, axis=1)

return delta * potential.units['length']

0 comments on commit eb4aea4

Please sign in to comment.