This is a Python implementation of the algorithm proposed in Mohammad Reza Keshtkaran and Zhi Yang, "A Fast, Robust Algorithm for Power Line Interference Cancellation in Neural Recording", Journal of Neural Engineering 11 026017, available from arXiv. The Python version is port of the MATLAB code provided by mrezak at removePLI. Currently only the single channel version of the algorithm is implemented.
The IPython Notebook shows how the code may be used and compares the results of the Python and MATLAB implementations.