Skip to content

Commit

Permalink
PC friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidTingley committed Jul 30, 2018
1 parent 69008b0 commit 17fa42d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tutorials/bz_tutorial_EventDetection.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
%% 1i. Specify variables

% Confirm user is in buzcode/tutorial folder
path = strsplit(pwd,'\');
path = strsplit(pwd,filesep);
if ~strcmp(path{end},'tutorials') & ~strcmp(path{end-1},'buzcode')
error('this script assumes you are running it from the /buzcode/tutorials folder...')
end
Expand Down
4 changes: 2 additions & 2 deletions tutorials/bz_tutorial_rateMapping.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
% /buzcode/tutorials/exampleDataStructs/20170505_396um_0um_merge folder,
% it will not work otherwise!

path = strsplit(pwd,'/');
path = strsplit(pwd,filesep);
if ~strcmp(path{end},'tutorials') & ~strcmp(path{end-1},'buzcode')
error('this script assumes you are running it from the /buzcode/tutorials folder...')
end
cd exampleDataStructs/20170505_396um_0um_merge
cd(['exampleDataStructs' filesep '20170505_396um_0um_merge'])

%% loading data
sessionInfo = bz_getSessionInfo;
Expand Down

0 comments on commit 17fa42d

Please sign in to comment.