-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_pickle_wall_normal_data.py
39 lines (32 loc) · 1.03 KB
/
run_pickle_wall_normal_data.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
def run_case(case_name):
import time_data_functions as tdf
import os
root = "/media/carlos/6E34D2CD34D29783/"\
+"2015-02_SerrationPIV/TR_Data_NewProcessing/"
print "Submitting {0}".format(case_name)
tdf.get_time_resolved_wall_normal_line(
hdf5_file = os.path.join(root,case_name+".hdf5") ,
case = case_name,
output_hdf = os.path.join(
'WallNormalData' , case_name+'_WallNormalData.hdf5'
),
plot = False,
overwrite = False,
x_locs = [
-0.10 , -0.05 , 0.0 , 0.10 ,
0.20 , 0.30 ,
0.40 , 0.5 , 0.60 ,
0.70 , 0.80 ,
0.90 , 1.0 , 1.10 ,
],
)
return 0
from multiprocessing import Pool
import os
p = Pool(4)
root = "/media/carlos/6E34D2CD34D29783/"\
+"2015-02_SerrationPIV/TR_Data_NewProcessing/"
cases = [f.replace('.hdf5','') for f in os.listdir(root) \
if f.endswith('.hdf5')
]
p.map(run_case,cases)