From cd9b14278ed1a9941fc1c8f9fc2e29777d03a843 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 6 Nov 2005 11:34:28 +0000 Subject: [PATCH] move numarray import inside function move numarray import inside function --- python/aubio/onsetcompare.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.26.2