This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| traits_ndarray | |
| -------------- | |
| I was taking the IPython.utils.traitlets for a spin; | |
| the only really useful thing missing was an NDArray | |
| which validates on certain shape and type constraints | |
| and notifies for interesting kinds of inequalities | |
| id(x)==id(y), (x==y).all(), allclose(x, y). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import division | |
| from numpy.fft import rfft | |
| from numpy import argmax, mean, diff, log, nonzero | |
| from scipy.signal import blackmanharris, correlate | |
| from time import time | |
| import sys | |
| try: | |
| import soundfile as sf | |
| except ImportError: | |
| from scikits.audiolab import flacread |