simon-r / dr14_t.meter

Compute the DR14 of a given audio file according to the procedure described by the Pleasurize Music Foundation
http://dr14tmeter.sourceforge.net
GNU General Public License v3.0
125 stars 33 forks source link

add missing qualifiers in compute_dr14.py (without them, code breaks on Python 3.6 & latest NumPy) #40

Closed magicgoose closed 7 years ago

magicgoose commented 7 years ago

Python 3.6, NumPy 1.12.0:

Before: name resolution error After: seems to work OK

Not sure how it worked before, maybe NumPy somehow added functions to global namespace.

simon-r commented 7 years ago

I've no errors with python 3.6 numpy 1.12 Could you copy and paste your error message?

magicgoose commented 7 years ago

I figured it out. This happens if I remove from numpy import * in a different file (audio_math.py). Should have tested it without any additional modifications.

simon-r commented 7 years ago

Now I'm using

import numpy as np !!!