Skip to content

Commit

Permalink
quantities: Make mean() more generic.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sbte committed Mar 14, 2024
1 parent 51443e9 commit 4d83a88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/amuse/units/quantities.py
Original file line number Diff line number Diff line change
Expand Up @@ -973,8 +973,8 @@ def transpose(self, axes=None):
def T(self):
return VectorQuantity(self.number.T, self.unit)

def mean(self, axis=None, dtype=None, out=None):
return new_quantity(self.number.mean(axis, dtype, out), self.unit)
def mean(self, *args, **kwargs):
return new_quantity(self.number.mean(*args, **kwargs), self.unit)

def median(self, **kwargs):
return new_quantity(numpy.median(self.number, **kwargs), self.unit)
Expand Down

0 comments on commit 4d83a88

Please sign in to comment.