From 229d0505f25181186db1431e072655e6cf1da2ab Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 22 Mar 2013 12:37:18 -0500 Subject: [PATCH] lib/aubio/__init__.py: add header and docstring --- python/lib/aubio/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/lib/aubio/__init__.py b/python/lib/aubio/__init__.py index 5fdc0ae0..62933c2b 100644 --- a/python/lib/aubio/__init__.py +++ b/python/lib/aubio/__init__.py @@ -1,10 +1,13 @@ +#! /usr/bin/env python + import numpy from _aubio import * from midiconv import * class fvec(numpy.ndarray): - + " a simple numpy array holding a vector of float32 " def __new__(self, length = 1024, **kwargs): + self.length = length if type(length) == type([]): return numpy.array(length, dtype='float32', **kwargs) return numpy.zeros(length, dtype='float32', **kwargs) -- 2.26.2