From 77c09ef8fc912ff7e6303754b2a26d55b78255da Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Thu, 12 Apr 2018 04:04:22 -0700 Subject: [PATCH] update 45 --- lib/mag.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mag.py b/lib/mag.py index 57f6462..091183f 100644 --- a/lib/mag.py +++ b/lib/mag.py @@ -1,4 +1,4 @@ -from . import toA, toQ, cascades, degrees_clamped +from . import toA, toQ, cascades, degrees_clamped, tau import numpy as np @@ -64,6 +64,7 @@ def c_render3(xs, cascade, mode='magnitude'): if mode == 'magnitude': fmt = 'real(log10(abs({})**2)*10 + gain)' elif mode == 'phase' or mode == 'group delay': + #fmt = '-angle({})' # not implemented in numexpr ;-; fmt = '-arctan2(imag({0}), real({0}))' # gross else: raise Exception("c_render3(): unknown mode: {}".format(mode))