From: Paul Brossier Date: Sun, 6 Nov 2005 11:34:28 +0000 (+0000) Subject: move numarray import inside function X-Git-Tag: bzr2git~814 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cd9b14278ed1a9941fc1c8f9fc2e29777d03a843;p=aubio.git move numarray import inside function move numarray import inside function --- diff --git a/python/aubio/onsetcompare.py b/python/aubio/onsetcompare.py index 5e239426..0eb66432 100644 --- a/python/aubio/onsetcompare.py +++ b/python/aubio/onsetcompare.py @@ -25,8 +25,6 @@ it somewhat implements the Receiver Operating Statistic (ROC). see http://en.wikipedia.org/wiki/Receiver_operating_characteristic """ -from numarray import * - def onset_roc(ltru, lexp, eps): """ compute differences between two lists orig = hits + missed + merged @@ -74,6 +72,7 @@ def onset_diffs(ltru, lexp, eps): return l def notes_roc (la, lb, eps): + from numarray import * """ creates a matrix of size len(la)*len(lb) then look for hit and miss in it within eps tolerance windows """ gdn,fpw,fpg,fpa,fdo,fdp = 0,0,0,0,0,0