Skip to content

Commit

Permalink
changed scipy to numpy mean
Browse files Browse the repository at this point in the history
  • Loading branch information
Acribbs committed Apr 1, 2024
1 parent c77f5e8 commit 56d2e7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cgat/Stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import math
import numpy
import scipy
import scipy.stats
from scipy import stats
import scipy.interpolate
import collections
from functools import reduce
Expand Down Expand Up @@ -312,7 +312,7 @@ def updateProperties(self, values):
self.mCounts = len(n)
self.mMin = min(n)
self.mMax = max(n)
self.mMean = scipy.mean(n)
self.mMean = numpy.mean(n)
self.mMedian = scipy.median(n)
self.mSampleStd = scipy.std(n)
self.mSum = reduce(lambda x, y: x + y, n)
Expand Down Expand Up @@ -441,7 +441,7 @@ def __init__(self, values=None,
self.counts = len(n)
self.min = min(n)
self.max = max(n)
self.mean = scipy.mean(n)
self.mean = numpy.mean(n)
self.median = scipy.median(n)
self.samplestd = scipy.std(n)
self.sum = reduce(lambda x, y: x + y, n)
Expand Down

0 comments on commit 56d2e7f

Please sign in to comment.