with open('./results/sensitive/sensitivity_fa.csv', 'wb') as csvfile: for row in fa_sensitivity: fa_data = csv.writer(csvfile, delimiter=',') fa_data.writerow(row) ######### # Sobol # ######### # sample (Sobol) os.chdir(os.path.join(pathway, 'SensAnal')) import sampleSobol as ss os.chdir(pathway) for cz in climate: so_data_set, so_problem, so_param_values = ss.sampleSobol( so_num_sample, cz) ## record the data in the folder './results/sensitive' ## store the information of data_set with open('./results/sensitive/so_data_set_' + str(cz) + '.csv', 'wb') as csvfile: for row in so_data_set: so_data = csv.writer(csvfile, delimiter=',') so_data.writerow(row) ## store the information of param_values with open('./results/sensitive/so_param_values_' + str(cz) + '.csv', 'wb') as csvfile: for row in so_param_values: so_data = csv.writer(csvfile, delimiter=',') so_data.writerow(row)
with open('./results/sensitive/sensitivity_fa.csv', 'wb') as csvfile: for row in fa_sensitivity: fa_data = csv.writer(csvfile, delimiter=',') fa_data.writerow(row) ######### # Sobol # ######### # sample (Sobol) os.chdir(os.path.join(pathway,'SensAnal')) import sampleSobol as ss os.chdir(pathway) for cz in climate: so_data_set,so_problem,so_param_values = ss.sampleSobol(so_num_sample,cz) ## record the data in the folder './results/sensitive' ## store the information of data_set with open('./results/sensitive/so_data_set_'+str(cz)+'.csv', 'wb') as csvfile: for row in so_data_set: so_data = csv.writer(csvfile, delimiter=',') so_data.writerow(row) ## store the information of param_values with open('./results/sensitive/so_param_values_'+str(cz)+'.csv', 'wb') as csvfile: for row in so_param_values: so_data = csv.writer(csvfile, delimiter=',') so_data.writerow(row) # run the model (Sobol) ## generate meta model