LIF Simulating a single leaky integrate-and-fire (LIF) neuron in Python. Parameters Everything's controlled through one dict near the top: params = { 'V_rest': -65, 'V_th': -50, 'V_reset': -65, 'R': 10, 'tau_m': 10, 't_ref': 2, }