Skip to content

Instantly share code, notes, and snippets.

View thomasfillon's full-sized avatar

Thomas Fillon thomasfillon

  • Université Bretagne Sud
  • Vannes, France
View GitHub Profile
@endolith
endolith / overlaps.py
Last active October 7, 2021 23:23
Window function constant overlap-add conditions (COLA)
from __future__ import division, print_function, absolute_import
import numpy as np
import scipy
from spectral import check_COLA # https://github.com/scipy/scipy/pull/6058
windows = np.unique(scipy.signal.windows._win_equiv.values())
windows = sorted(windows, key=lambda x: x.__name__)
for window in windows:
try:
@minrk
minrk / ipnbdoctest.py
Last active September 14, 2023 11:23
simple example script for running and testing notebooks.
#!/usr/bin/env python
"""
simple example script for running and testing notebooks.
Usage: `ipnbdoctest.py foo.ipynb [bar.ipynb [...]]`
Each cell is submitted to the kernel, and the outputs are compared with those stored in the notebook.
"""
# License: Public Domain, but credit is nice (Min RK).