* [gentoo-commits] gentoo-x86 commit in sci-chemistry/aria/files: aria-2.3.2-python.patch
@ 2011-10-11 14:24 Justin Lecher (jlec)
0 siblings, 0 replies; only message in thread
From: Justin Lecher (jlec) @ 2011-10-11 14:24 UTC (permalink / raw
To: gentoo-commits
jlec 11/10/11 14:24:22
Added: aria-2.3.2-python.patch
Log:
Added fix for python import
(Portage version: 2.2.0_alpha66/cvs/Linux x86_64)
Revision Changes Path
1.1 sci-chemistry/aria/files/aria-2.3.2-python.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/aria/files/aria-2.3.2-python.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/aria/files/aria-2.3.2-python.patch?rev=1.1&content-type=text/plain
Index: aria-2.3.2-python.patch
===================================================================
src/py/aria/legacy/QualityChecks/Descriptive.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/py/aria/legacy/QualityChecks/Descriptive.py b/src/py/aria/legacy/QualityChecks/Descriptive.py
index ae5913c..550d20c 100644
--- a/src/py/aria/legacy/QualityChecks/Descriptive.py
+++ b/src/py/aria/legacy/QualityChecks/Descriptive.py
@@ -1,3 +1,6 @@
+from math import *
+from numpy import *
+
class Descriptive:
"""
some basic statistics
@@ -55,7 +58,6 @@ class Descriptive:
def getStdDev(self):
if( len(self.myData) == 0): return None
- from math import *
if( (self.count - 1) > 0 ):
return sqrt( self.pseudoVariance/ (self.count - 1))
else:
@@ -89,7 +91,6 @@ class Descriptive:
def getMedian(self):
if( len(self.myData) == 0): return None
if( self.median == None ):
- from numpy import *
sort(self.myData)
if( self.count%2 == 1):
self.median = self.myData[(self.count-1)/2]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-10-11 14:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-11 14:24 [gentoo-commits] gentoo-x86 commit in sci-chemistry/aria/files: aria-2.3.2-python.patch Justin Lecher (jlec)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox