Skip to content

Commit

Permalink
Merge pull request #154 from CCC-members/develop
Browse files Browse the repository at this point in the history
Updating dataset
  • Loading branch information
arioskyag authored Oct 16, 2024
2 parents f14c2a0 + 4a2ced1 commit e2883ec
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 21 deletions.
46 changes: 25 additions & 21 deletions app/functions/isnetav.m
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
function x=isnetav
disp('-->> Checking internet status');
[~,b]=system('ping -c 5 -W 15 www.github.com');
n=strfind(b,'received');
if ismac
% Code to run on Mac platform
elseif isunix
n1=b(n-2);
elseif ispc
n1=b(n+7);
else
disp('Platform not supported');
end
if(n1=='5')
x=1;
disp('-->> Internet connection Ok');
else
try
disp('-->> Checking internet status');
[~,b]=system('ping -c 5 -W 15 www.github.com');
n=strfind(b,'received');
if ismac
% Code to run on Mac platform
elseif isunix
n1=b(n-2);
elseif ispc
n1=b(n+7);
else
disp('Platform not supported');
end
if(n1=='5')
x=1;
disp('-->> Internet connection Ok');
else
x=0;
cprintf('red','-->> We could not get you online'); fprintf('\n');
cprintf('red','-->> There migth be either a problem with the internet connection or matlab proxy configuration'); fprintf('\n');
cprintf('red','-->> We could not get the BC-VARETA latest version right now.');fprintf('\n');
cprintf('red','-->> Please check your internet configuration and try to update again.');fprintf('\n');
disp('=================================================================');
end
catch
x=0;
cprintf('red','-->> We could not get you online'); fprintf('\n');
cprintf('red','-->> There migth be either a problem with the internet connection or matlab proxy configuration'); fprintf('\n');
cprintf('red','-->> We could not get the BC-VARETA latest version right now.');fprintf('\n');
cprintf('red','-->> Please check your internet configuration and try to update again.');fprintf('\n');
disp('=================================================================');
end
end
Binary file modified guide/CiftiStorm.mlapp
Binary file not shown.
Binary file modified guide/DatasetUI.mlapp
Binary file not shown.

0 comments on commit e2883ec

Please sign in to comment.