forked from esutlie/spikeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
file_paths.py
41 lines (33 loc) · 1.54 KB
/
file_paths.py
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
39
40
41
import os
def root_file_paths(request=None):
"""change root filepaths here to your own"""
# A directory containing only data folders generated by SpikeGLX.
origin_path = os.path.join('D:\\', 'recordings')
# A folder on an external hardrive or other accessible storage location.
external_path = os.path.join('F:\\', 'Files', 'neuropixel_data2')
# external_path = os.path.join('F:\\', 'Files', 'rebekah')
# external_path = os.path.join('E:\\', 'neuropixel_data')
# external_path = os.path.join('E:\\', 'rebekah')
# A folder for sessions ready to be manually curated. Will take up a lot of space if multiple sessions are queued.
phy_ready_path = os.path.join('Y:\\', 'phy_ready')
# Location of the associated raspberry pi files.
pi_path = os.path.join('C:\\', 'Users', 'Elissa', 'GoogleDrive', 'Code', 'Python', 'behavior_code', 'data')
# Final destination for processed data.
processed_data = os.path.join('C:\\', 'processed_data')
# A destination for behavior data.
behavior_only = os.path.join('C:\\', 'github', 'analysis_pipeline', 'z_behavior')
file_paths = {
'origin_path': origin_path,
'external_path': external_path,
'phy_ready_path': phy_ready_path,
'pi_path': pi_path,
'processed_data': processed_data,
'behavior_only': behavior_only
}
if request is None:
return file_paths
elif request not in file_paths.keys():
print('file_path name is incorrect')
raise Exception
else:
return file_paths['request']