-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_paths.m
38 lines (30 loc) · 1.13 KB
/
get_paths.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
function [s_dir, l_dir] = get_paths
% Generate paths to striatum and logfile data
HPC_NAME = 'ac1drb';
MAC_NAME = 'tacd';
LNX_NAME = 'dbuxton';
switch 7
case exist(fullfile('/data', HPC_NAME), 'dir')
% Iceberg / ShARC
s_dir = fullfile('/data', HPC_NAME, 'striatums');
switch 7
case exist(fullfile('/fastdata-sharc', HPC_NAME), 'dir')
% Iceberg
l_dir = fullfile('/fastdata-sharc', HPC_NAME, 'output');
case exist(fullfile('/fastdata', HPC_NAME), 'dir')
% ShARC
l_dir = fullfile('/fastdata', HPC_NAME, 'output');
otherwise
error('Unrecognised HPC system')
end
case exist('/Users', 'dir')
% macOS
s_dir = fullfile('/Users', MAC_NAME, 'Documents/Striatums');
l_dir = fullfile('/Users', MAC_NAME, 'Documents/Logs/');
case exist('/home', 'dir')
% Linux desktop
s_dir = fullfile('/home', LNX_NAME, 'Documents/Striatums');
l_dir = fullfile('/home', LNX_NAME, 'Documents/Logs/');
otherwise
error('Unknown system or directory structure')
end