Skip to content

Commit

Permalink
Implemented check for read_bv mex file. If it's not found, file_loadB…
Browse files Browse the repository at this point in the history
…V is called instead.
  • Loading branch information
Sven Daehne committed Feb 17, 2014
1 parent cb4def6 commit f14c1ef
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions fileio/file_readBV.m
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@
% - There was an bug in the check for the lag


%% check if the mex file is present
readBV_status = exist('read_bv','file');
if not(readBV_status == 3)
warning('Could not detect mex files for read_bv! Using file_loadBV instead.')
varargout= cell(1, nargout);
[varargout{:}]= file_loadBV(file, varargin{:});
return;
end


%% start file_readBV
global BTB

props= {'CLab' '' 'CHAR|CELL{CHAR}'
Expand Down

0 comments on commit f14c1ef

Please sign in to comment.