-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
small improvements and updated db list
- Loading branch information
1 parent
b63d9ff
commit 6a3bac6
Showing
7 changed files
with
63 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
function session = db_update_session(session,varargin) | ||
% Peter Petersen | ||
% [email protected] | ||
% Last edited: 17-06-2019 | ||
% Last edited: 27-06-2019 | ||
|
||
p = inputParser; | ||
addParameter(p,'forceReload',false,@islogical); | ||
|
@@ -18,7 +18,7 @@ | |
%% % % % % % % % % % % % % % % % % % % % | ||
% Extracellular | ||
% % % % % % % % % % % % % % % % % % % % | ||
if session.general.duration == 0 | forceReload | ||
if ~isfield(session.general,'duration') | session.general.duration == 0 | forceReload | ||
sr = sessionInfo.rates.wideband; | ||
if exist(fullfile(session.general.basePath,'info.rhd')) | ||
Intan_rec_info = read_Intan_RHD2000_file_Peter(pwd); | ||
|
@@ -52,7 +52,7 @@ | |
%% % % % % % % % % % % % % % % % % % % % | ||
% Epochs | ||
% % % % % % % % % % % % % % % % % % % % | ||
if any(session.epochs.duration == 0) | forceReload | ||
if isempty(session.epochs.duration) | any(session.epochs.duration == 0) | forceReload | ||
duration = []; | ||
for i = 1:size(session.epochs.name,2) | ||
fname = 'amplifier.dat'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters