A python module and jupyter notebooks for the paper:

Peterson EJ, Voytek B (2020) Homeostatic mechanisms may shape the type and duration of oscillatory modulation. J Neurophysiol
http://dx.doi.org/10.1152/jn.00119.2020

are available at the authors github repository:

https://github.com/voytekresearch/resistingrhythm