I am implementing a Lock-In-Amplifier in Python with scipy for measurements with light with a decimation afterwards. Right now, this is implemented with an average. This works fine, but I am trying to replace the average with a properly low pass (Butterworth) and decimation afterwards like here described:
https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.decimate.html
I am quite unsure how to choose the cut off frequency of the low pass for the lock-in amplifier. Is there a rule of thumb what's the best frequency for lock-in low pass? In theory, it should be by 0 Hz which is in reality of course not.