The function correct_neuropil in preprocess_traces contains this line of code:
lowActivity = np.nanpercentile(F, 50, 0)
The variable lowActivity is not used at any point later throughout the function, therefore this line should be removed (unless it still needs to be implemented, but I cannot see its use).
The function correct_neuropil in preprocess_traces contains this line of code:
lowActivity = np.nanpercentile(F, 50, 0)
The variable lowActivity is not used at any point later throughout the function, therefore this line should be removed (unless it still needs to be implemented, but I cannot see its use).