csb0 / PCDM

pupil common drive model (PCDM) toolbox.
Other
1 stars 2 forks source link

interpolate blink = 0 does not work #8

Open nicobast opened 1 year ago

nicobast commented 1 year ago

Hi, I added a code snippet to dataAnalysis.m to make it work for the option

op.interpolateBlinks = 0

this code is:

if op.interpolateBlinks == 0
        in.pupilArea{ff}((isnan(in.pupilArea{ff}))) = 0; % set NaN regions to 0 for myBWfilter
        in.pupilArea2 = transpose(in.pupilArea{ff});
    end

The background is that myBWfilter.m seems to have problems with NaN data and needs a transposed array as is normally returned by blinkinterp

I just want to check, if this is fine for you.