This is a module that can perform data reduction in several ways.
- Can perfrom data reduction on arrays
- Select from several data reduction methods
- Tested with an .abf file using pyabf module
pip install drtestImporting:
import drtest as drUse the DataAnalysis class:
da = dr.DataAnalysis(xdata, ydata)Perform data reduction with different methods:
xdec, ydec = da.data_reduction(method='decimate', reduction_factor=4)
xavr, yavr = da.data_reduction(method='average', reduction_factor=4)
xmin, ymin = da.data_reduction(method='min', reduction_factor=4)
xmax, ymax = da.data_reduction(method='max', reduction_factor=4)
xminmax, yminmax = da.data_reduction(method='min/max', reduction_factor=4)