summaryrefslogtreecommitdiff
path: root/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to '__init__.py')
-rw-r--r--__init__.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/__init__.py b/__init__.py
index ae44d93..44f2c37 100644
--- a/__init__.py
+++ b/__init__.py
@@ -20,10 +20,15 @@ from sndobj import SndObjPeakDetection, SndObjPartialTracking, SndObjSynthesis
from sms import SMSPeakDetection, SMSPartialTracking, SMSSynthesis, SMSResidual
from mq import MQPeakDetection, MQPartialTracking
-from numpy import array as np_array
-def array (n, type='float32'):
- return(np_array(n, type))
+import numpy
+#float = numpy.float64
+
+def array (n, type=float):
+ return(numpy.array(n, dtype=type))
+
+def asarray (n, type=float):
+ return(numpy.asarray(n, dtype=type))
+
+def zeros (n, type=float):
+ return(numpy.zeros(n, dtype=type))
-from numpy import zeros as np_zeros
-def zeros (n, type='float32'):
- return(np_zeros(n, type))