Skip to content

Commit

Permalink
IO: Nicolet reader more robust to incorrect recording date
Browse files Browse the repository at this point in the history
  • Loading branch information
ftadel committed Feb 25, 2019
1 parent 24be7bc commit 3a5fad5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/license.html
Expand Up @@ -3,7 +3,7 @@

</head>
<body alink="#fff000" link="#fff000" vlink="#fff000">
<!-- LICENCE_START -->Version: 3.4 (24-Feb-2019)<br>
<!-- LICENCE_START -->Version: 3.4 (25-Feb-2019)<br>
<span style="font-style: italic;">COPYRIGHT &copy; 2000-2019
USC &amp; McGill University.<br>
</span>
Expand Down
2 changes: 1 addition & 1 deletion doc/version.txt
@@ -1,2 +1,2 @@
% Brainstorm
% v. 3.4 190224 (24-Feb-2019)
% v. 3.4 190225 (25-Feb-2019)
6 changes: 5 additions & 1 deletion toolbox/io/in_fopen_nicolet.m
Expand Up @@ -63,7 +63,11 @@
[fPath, fBase, fExt] = bst_fileparts(DataFile);
sFile.comment = fBase;
% Acquisition date
sFile.acq_date = datestr(datenum(hdr.obj.segments.startDate), 'dd-mmm-yyyy');
try
sFile.acq_date = datestr(datenum(hdr.obj.segments.startDate), 'dd-mmm-yyyy');
catch
sFile.acq_date = '01-Jan-2000';
end

% Multiple segments
if (hdr.nSegments > 1)
Expand Down

0 comments on commit 3a5fad5

Please sign in to comment.