BrainardLab / OneLightToolbox

Brainard Lab code for talking to our OneLight boxes
MIT License
1 stars 0 forks source link

Change to OLCorrectDirection #38

Closed michaeab closed 6 years ago

michaeab commented 6 years ago

varargin{:} in OLCorrectDirection lines 92 and 94 prevents OLCorrectPrimaryValues from running

Expected a string scalar or character vector for the parameter name, instead the input type was 'double'.

Error in OLDirection_bipolar/OLCorrectDirection (line 92)
    [correctedCombinedPrimaryValuesPositive, correctionDataPositive] =
    OLCorrectPrimaryValues(nominalCombinedPrimaryValuesPositive,direction.calibration,oneLight,radiometer,varargin{:});

Removing varargin{:} for the call to OLCorrectPrimaryValues allows code to run but remotes the ability to use all the arguments

JorisVincent commented 6 years ago

Fixed with 79af0fa