示例#1
0
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 
# =============================================================================
"""

示例#2
0

def time_stamp_to_time_diff(time_stamp, formatt="%H:%M:%S"):
    times = []

    start = dt.datetime.strptime(time_stamp[0], formatt)

    for time in time_stamp:
        current = dt.datetime.strptime(time, formatt)
        timedelta = current - start
        times.append(timedelta.total_seconds())
    return times


fplot.set_rc_params(font_size_offset=0,
                    figsize=(1400, 600),
                    linewidth=2,
                    markersize=6)

path = r'X:\Dnox\Erprobung\13_Data_transfer\Carda\BFP_volumetric_bypass_test\Logged data-7.5V-10.01A'

# =============================================================================
#
# =============================================================================
filesa = fio.get_files(path, contains=['A0'], extension=['csv'])
filesaa = fio.get_files(path, contains=['A1'], extension=['csv'])
filesa = filesa + filesaa

for file in filesa:
    print(file)
    dataframe = pd.read_csv(file, sep=';', decimal=',')
    weight = dataframe[r'Weight [g]'].tolist()
示例#3
0
"""
Created on Tue May 29 20:09:30 2018

@author: zdenek
"""
import os
import sys
sys.path.append('D:/scripts')
import numpy as np
import pandas as pd
import functions_io as fio
import functions_plot as fplot
import matplotlib.pyplot as plt
import functions_data_processing as fdproc
pd.options.display.max_colwidth = 1500
fplot.set_rc_params()
cwd = fio.get_script_dir(__file__)
plt.ioff()
"""
# =============================================================================
# user settings 
# =============================================================================
#"""
used_dirs_keys = []
skip_rows = 1

low_threshold = 1
high_threshold = 5

max_marker = 'o'
min_marker = 'o'
示例#4
0
"""
Created on Wed May 30 12:56:28 2018

@author: CAZ2BJ
"""
import numpy as np
import matplotlib.pyplot as plt

import pandas as pd
import functions_io as fio
import functions_csv as fcsv
import functions_plot as fplot
import functions_excel as fexcel
import functions_data_processing as fdp

fplot.set_rc_params(font_size_offset=4)

path = r'X:/Dnox/Tesla/2017/E1700224-08/data/recording/ecr_samples.xlsx'
frame = pd.read_excel(path, usecols=[0, 1]).dropna()
ecr_maxima = frame["Maximum force"].tolist()

fplot.plot_swarm([ecr_maxima], [1], color='b')
fplot.plot_violin([ecr_maxima], [1])

path = r'X:/Dnox/Tesla/2017/E1700224-08/data/recording/serial_samples.xlsx'
frame = pd.read_excel(path, usecols=[0, 1]).dropna()
series_maxima = frame["Maximum force"].tolist()

fplot.plot_violin([series_maxima], [2], body_color='g')
fplot.plot_swarm([series_maxima], [2], color='g')