Example #1
0
plt.ioff()
"""
# =============================================================================
# user settings 
# =============================================================================
#"""
used_dirs_keys = []
skip_rows = 1

low_threshold = 1
high_threshold = 5

max_marker = 'o'
min_marker = 'o'

c_map_single_graph = fplot.C_map(['red', 'blue', 'green'])
c_map_root_graph = fplot.C_map(['red', 'blue', 'green'])
c_map_combined_graph = fplot.C_map(['red', 'blue', 'green'])

results_dir, = 'results',
results_name = 'results.xlsx'
single_file_graphs = 'single_file_graphs'
root_dir_graphs = 'root_dir_graphs'
combined_graph = 'combined_graph'
combined_graph_name = 'data'
"""
# =============================================================================
# calculation
# =============================================================================
#"""
# creating dir structure for results
Example #2
0
skip_rows              = 20

temperature_diff = 1
pressure_offset  = 000

# p_diff graphs
plot_p_diff      = 1
plot_p_MSP       = 1
plot_p_BMP       = 1
# comparison graphs
plot_violin      = 1
opacity          = 0
plot_swarm       = 1
plot_box         = 0
                                  
p_diff_color_map = fplot.C_map(['red','blue', 'green'])                                                
comp_color_map   = fplot.C_map(['red', 'green', 'blue', 'grey'])
fplot.set_rc_params(font_size_offset = 6, figsize = (1400,600), linewidth = 4, markersize = 7)

temperatures        = [-8, -5, 0 , 10 , 22, 40]
voltages            = [10.5, 13.5, 15.5]
pressures           = [4500, 6000, 8500]
valid_measurements  = 50



"""
# =============================================================================
# end of user settings 
# =============================================================================
"""
Example #3
0
if len(samples_sorted) != len(hydra_samples_sorted):
    print('{}'.format('not the same number of samples in data and hydra'))
    input(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
    raise
for sam, ple in zip(samples_sorted, hydra_samples_sorted):
    if sam == ple:
        pass
    else:
        print('{}'.format('files not equal'))
        input(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
        raise
print('All data files found and valid')
input("Press ENTER to continue..")

c_map = fplot.C_map()
c_map

volumetric_constant = 31.75

samples = sorted([a for a in hydra_frame['Ident No.'].unique()])

print('sample', ' ', 'volumetric', ' ', 'p_diff')
for sample in samples:
    p_diff = hydra_frame.loc[
        (hydra_frame['Ident No.'] == sample),
        ['066_Diff_BMP_VIS_P_Mess_6_0bar_MP4_Sp1']].values[0]
    volumetric = hydra_frame.loc[
        (hydra_frame['Ident No.'] == sample),
        ['006_BerechnetesHubvolumen_6_0bar_3_Sp1']].values[0]
    plt.plot(volumetric / volumetric_constant - 1,