Skip to content

Commit

Permalink
fixed other errors for median and std scipy
Browse files Browse the repository at this point in the history
  • Loading branch information
Acribbs committed Apr 1, 2024
1 parent 56d2e7f commit 8a5072b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cgat/Stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ def updateProperties(self, values):
self.mMin = min(n)
self.mMax = max(n)
self.mMean = numpy.mean(n)
self.mMedian = scipy.median(n)
self.mSampleStd = scipy.std(n)
self.mMedian = numpy.median(n)
self.mSampleStd = numpy.std(n)
self.mSum = reduce(lambda x, y: x + y, n)

def getZScore(self, value):
Expand Down Expand Up @@ -442,8 +442,8 @@ def __init__(self, values=None,
self.min = min(n)
self.max = max(n)
self.mean = numpy.mean(n)
self.median = scipy.median(n)
self.samplestd = scipy.std(n)
self.median = numpy.median(n)
self.samplestd = numpy.std(n)
self.sum = reduce(lambda x, y: x + y, n)

def getHeaders(self):
Expand Down

0 comments on commit 8a5072b

Please sign in to comment.