-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbatchCopy.py
30 lines (26 loc) · 1.43 KB
/
batchCopy.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
import glob
import os
import sys
sys.path.append('./')
import tools.extractSaveData as extractSaveData
destDir = '/media/biomed/public_html/heike/'
#dirList = glob.glob(path+'*/')
mice = ['220211_f38','220214_f43','220205_f57','220205_f61','220507_m81','220507_m90','220525_m19','220525_m27','220525_m28','220716_f65','220716_f67']
recordingsMLI = 'allMLI'
recordingsPC = 'allPC'
ephysSummaryAllAnimals = []
for n in range(len(mice)):
eSD = extractSaveData.extractSaveData(mice[n],recStruc='simplexEphy')
pickleEphysMLIFilePath = eSD.analysisLocation + 'allEphysPawData_%s_%s.p' % (mice[n], recordingsMLI)
overviewFigMLIPath = eSD.figureLocation + '%s_ephys_spike-times_waveform_%s.pdf' % (mice[n], recordingsMLI)
pickleEphysPCFilePath = eSD.analysisLocation +'allEphysPawData_%s_%s.p' % (mice[n], recordingsPC)
overviewFigPCPath = eSD.figureLocation + '%s_ephys_spike-times_waveform_%s.pdf' % (mice[n], recordingsPC)
#ephysMLIAnalysisFile = eSD.analysisLocation + '/ephysSummary_%s.p' % recordingsMLI
#ephysPCAnalysisFile = eSD.analysisLocation + '/ephysSummary_%s.p' % recordingsPC
print('copying ', pickleEphysMLIFilePath)
os.system('cp %s %s' % (pickleEphysMLIFilePath,destDir))
os.system('cp %s %s' % (overviewFigMLIPath,destDir))
print('copying ', pickleEphysPCFilePath)
os.system('cp %s %s' % (pickleEphysPCFilePath,destDir))
os.system('cp %s %s' % (overviewFigPCPath, destDir))
del eSD