Skip to content

Commit

Permalink
Bugfix: Reading FIF files with no measurements
Browse files Browse the repository at this point in the history
  • Loading branch information
ftadel committed May 28, 2020
1 parent 64225e6 commit c684f2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion toolbox/io/in_fopen_fif.m
Expand Up @@ -128,7 +128,9 @@
sFile.channelflag = ChannelFlag;
sFile.byteorder = 'b';
% Acquisition date (saved in POSIX format in FIF file)
sFile.acq_date = str_date(info.meas_date(1), 'posix');
if isfield(info, 'meas_date') && ~isempty(info.meas_date)
sFile.acq_date = str_date(info.meas_date(1), 'posix');
end


%% ===== READ DATA DESCRIPTION =====
Expand Down

0 comments on commit c684f2c

Please sign in to comment.