Guide to adding a filter to raw data pre processing - galizia-lab/pyview GitHub Wiki

The function "view.python_core.p1_class.P1SingleWavelengthAbstract.correct_raw_data" contains the code for pre-processing raw data. The same function is used irrespective of the the file format from which raw data is loaded. Please revise the function to insert other pre-processing steps. You could introduce new flags ([here](Guide to adding new flags)).

Currently the steps for pre-processing raw data are:

  1. Apply median filter according to Data_Median_Filter* flags (see here)
  2. Apply median filter according to Data_Mean_Filter* flags (see here)
  3. Apply light scattering compensation using unsharp masking. See Pg 376 of Galizia & Vetter(2004)"Optical Methods for Analyzing Odor-Evoked Activity in the Insect Brain." DOI: 10.1201/9781420039429.ch13
  4. Bleach correction according to the flags LE_Bleach*, LE_Log* (see here) and the end of background frames decided by onset of the first stimulus and background frames flags