-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget_vrlearn_dirs.m
More file actions
37 lines (29 loc) · 957 Bytes
/
Copy pathget_vrlearn_dirs.m
File metadata and controls
37 lines (29 loc) · 957 Bytes
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
function vr_dirs = get_vrlearn_dirs(online)
% Just get VR learn dirs without touching the path (faster than prepVRLearn)
if ~exist("online", 'var') || isempty(online)
online = true;
end
matlab_dir = userpath;
[synology_dir, bigdata_dir] = get_synology_dir;
% Virmen engine
if online
vr_dirs.virmen = fullfile(synology_dir, 'code', 'virmen-for-mouse-vr');
else
vr_dirs.virmen = fullfile(matlab_dir, 'virmen-for-mouse-vr');
end
vr_dirs.project = fullfile(synology_dir, 'eblackwood', 'VR_learning');
% Our custom virmen code
if online
vr_dirs.expcode = fullfile(vr_dirs.project, 'experiment_code');
else
vr_dirs.expcode = fullfile(matlab_dir, 'cue-learning-virmen-expcode');
end
% Data save directory
if online
vr_dirs.data = fullfile(vr_dirs.project, 'virmen_data');
else
vr_dirs.data = fullfile(matlab_dir, '..', 'virmen_data');
end
% 2p data directory
vr_dirs.data_2p = fullfile(bigdata_dir, 'eblackwood', '2p_data');
end