def get_relevant_wall_normal_data_from_pandas_hdf(exceptions = []): import article2_time_resolved_routines as trr import case_dict_overall_correction as cdoc from os.path import join from numpy import arange root = '/media/carlos/6E34D2CD34D29783/2015-02_SerrationPIV/'\ +'TR_Data_Location_Calibrated' case_dict = cdoc.return_case_df() for case in case_dict.iterrows(): case_file = case[1].file skip = False if len(exceptions): for ex in exceptions: if ex in case_file: skip = True if not skip: #x_locs = [float(f) for f in case[1].x_loc.split(',')] if 'z00' in case_file and 'Sr' in case_file: x_locs = arange( 36, 40.2, 0.2 ) elif 'z05' in case_file and 'Sr' in case_file: x_locs = arange( 16, 20.2, 0.2 ) elif 'z10' in case_file or 'STE' in case_file: x_locs = arange( -5, -0.8, 0.2 ) trr.wall_normal_data_to_reserved_pickles_from_pandas_hdf( join(root, case_file), x_locs , overwrite = False, append = True )
def get_relevant_wall_normal_data_from_pandas_hdf(exceptions=[]): import article2_time_resolved_routines as trr import case_dict_overall_correction as cdoc from os.path import join from numpy import arange root = '/media/carlos/6E34D2CD34D29783/2015-02_SerrationPIV/'\ +'TR_Data_Location_Calibrated' case_dict = cdoc.return_case_df() for case in case_dict.iterrows(): case_file = case[1].file skip = False if len(exceptions): for ex in exceptions: if ex in case_file: skip = True if not skip: #x_locs = [float(f) for f in case[1].x_loc.split(',')] if 'z00' in case_file and 'Sr' in case_file: x_locs = arange(36, 40.2, 0.2) elif 'z05' in case_file and 'Sr' in case_file: x_locs = arange(16, 20.2, 0.2) elif 'z10' in case_file or 'STE' in case_file: x_locs = arange(-5, -0.8, 0.2) trr.wall_normal_data_to_reserved_pickles_from_pandas_hdf( join(root, case_file), x_locs, overwrite=False, append=True)
airfoil_normal=False, ) trr.raw_data_to_pandas_hdf5( case=case, root='', output_root='', overwrite=False, time_step_limit=0, plot=False, airfoil_normal=True, ) try: routines.get_relevant_wall_normal_data_from_pandas_hdf() except: pass return 0 from multiprocessing import Pool import case_dict_overall_correction as case_dict case_constants = case_dict.return_case_df() cases = case_constants.file.values p = Pool(4) p.map(run_case, cases)
def run_case(case): import article2_time_resolved_routines as trr trr.raw_data_to_pandas_hdf5( case = case, root = '' , output_root = '', overwrite = False, time_step_limit = 0, plot = False, airfoil_normal = True, ) return 0 import case_dict_overall_correction as case_dict case_constants = case_dict.return_case_df() cases = case_constants.file.values for c in cases: if "STE" in c: run_case(c)