Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ViNERS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lab-Keast-Osborne-Release
ViNERS
Commits
6e569838
Commit
6e569838
authored
3 years ago
by
Calvin Eiber
Browse files
Options
Downloads
Patches
Plain Diff
tweak installer
parent
c9e7b2bf
Branches
Branches containing commit
Tags
release-1.0.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install_ViNERS.m
+29
-34
29 additions, 34 deletions
install_ViNERS.m
with
29 additions
and
34 deletions
install_ViNERS.m
+
29
−
34
View file @
6e569838
...
...
@@ -18,7 +18,7 @@ end
function
setup_ViNERS_on_unix
h
=
waitbar
(
0
,
'Gathering required
informat
ion ...'
);
h
=
waitbar
(
0
,
'Gathering required ion ...'
);
stop_if_cancelled
=
@
()
assert
(
ishandle
(
h
),
'cancelled by user'
);
p_
=
@
(
x
,
varargin
)
[
x
.
folder
filesep
x
.
name
varargin
{:}];
s_
=
@
(
varargin
)
system
(
sprintf
(
varargin
{:}));
...
...
@@ -72,7 +72,7 @@ if not_found, config.git = [];
else
config
.
git
=
'git'
;
end
config
.
install_path
=
pwd
;
config
.
install_path
=
[
pwd
filesep
'ViNERS'
]
;
stop_if_cancelled
();
h
=
waitbar
(
4
/
n_steps
,
h
);
...
...
@@ -121,7 +121,7 @@ while ~strcmp(config.state,'done')
switch
config
.
state
case
'git pull viners'
% download
url
=
'https://gitlab.unimelb.edu.au/lab-keast-osborne-release/viners'
;
url
=
gitlab_path
;
branch
=
'ViNERS-master'
;
if
exist
(
config
.
install_path
,
'dir'
),
cd
'..'
,
pause
(
0.05
)
...
...
@@ -284,8 +284,7 @@ if not_found, config.git = [];
else
config
.
git
=
'git'
;
end
config
.
install_path
=
pwd
;
config
.
install_path
=
[
pwd
filesep
'ViNERS'
];
stop_if_cancelled
();
h
=
waitbar
(
4
/
n_steps
,
h
);
%% Parallel
...
...
@@ -353,7 +352,7 @@ while ~strcmp(config.state,'done')
case
'git pull viners'
% download
url
=
'https://gitlab.unimelb.edu.au/lab-keast-osborne-release/viners'
;
url
=
gitlab_path
;
branch
=
'ViNERS-master'
;
if
exist
(
config
.
install_path
,
'dir'
),
cd
'..'
,
pause
(
0.05
)
...
...
@@ -442,6 +441,24 @@ fprintf('\n%s\n\n ViNERS installation complete\n\n%s\n\n', ...
'='
*
ones
(
1
,
40
),
'='
*
ones
(
1
,
40
))
delete
(
handles
(
1
)
.
Parent
)
%%
% // example CONFIGURATION file generated 11-Aug-2020 02:30:55
%
% { "env-list": [{
% "name": "THE-STREAM",
% "user": "Calvin",
% "machine": "x64-based PC",
% "root": "C:\Users\Calvin\Documents\MATLAB\Keast-lab\oSPARC"
% "cache": "pn-mdl-%d/",
% "gmsh": "C:\Program Files\GMSH 4.8.3\gmsh.exe",
% "neuron": "C:\nrn\bin\nrniv.exe",
% "eidors": "C:\Users\Calvin\Documents\MATLAB\Keast-lab\EIDORS\eidors",
% "toolbox-gsa": "null"
% }]
% }
function
[
config
,
handles
]
=
splashScreen
(
config
,
command
,
varargin
)
persistent
h
...
...
@@ -554,16 +571,14 @@ switch command
return
case
'manual-unzip'
url
=
'https://gitlab.unimelb.edu.au/lab-keast-osborne/pelvic-nerve-model'
;
h
.
Children
(
9
)
.
Text
=
[
'Automatic download failed, please download ViNERS from '
newline
...
'GitLab into '
config
.
install_path
];
h
.
Children
(
8
)
.
Position
(
3
)
=
600
;
h
.
Children
(
5
)
.
Text
=
'open ViNERS on GitLab'
;
h
.
Children
(
5
)
.
Position
=
[
15
425
360
26
];
h
.
Children
(
5
)
.
ButtonPushedFcn
=
@
(
~
,
~
)
web
(
url
,
'-browser'
);
h
.
Children
(
5
)
.
ButtonPushedFcn
=
@
(
~
,
~
)
web
(
gitlab_path
,
'-browser'
);
h
.
Children
(
5
)
.
Visible
=
'on'
;
% button
...
...
@@ -855,7 +870,7 @@ switch command
'and have a look at the examples. Good luck and '
newline
...
'may your simulations reflect reality.'
];
url
=
'https://gitlab.unimelb.edu.au/lab-keast-osborne-release/viners
/-/wikis/home'
;
url
=
gitlab_path
(
'
/-/wikis/home'
)
;
h
.
Children
(
4
)
.
Text
=
'more information about ViNERS'
;
h
.
Children
(
4
)
.
Position
=
[
15
255
360
26
];
...
...
@@ -896,9 +911,6 @@ else [~,x] = uigetfile(['*' stub],label,h.Value);
end
if
ischar
(
x
),
h
.
Value
=
x
;
end
function
apt_install
(
h
,
command
)
t
=
h
.
Text
;
...
...
@@ -940,23 +952,6 @@ end
return
%%
%
%
% // example CONFIGURATION file generated 11-Aug-2020 02:30:55
%
% { "env-list": [{
% "name": "THE-STREAM",
% "user": "Calvin",
% "machine": "x64-based PC",
% "root": "C:\Users\Calvin\Documents\MATLAB\Keast-lab\oSPARC"
% "cache": "pn-mdl-%d/",
% "gmsh": "C:\Program Files\GMSH 4.8.3\gmsh.exe",
% "neuron": "C:\nrn\bin\nrniv.exe",
% "eidors": "C:\Users\Calvin\Documents\MATLAB\Keast-lab\EIDORS\eidors",
% "toolbox-gsa": "null"
% }]
% }
%
\ No newline at end of file
function
p
=
gitlab_path
(
varargin
)
p
=
'https://gitlab.unimelb.edu.au/lab-keast-osborne-release/ViNERS'
;
p
=
strcat
(
p
,
varargin
{:});
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment