-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
39 lines (31 loc) · 1.43 KB
/
main.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
39
from Helpers.comparison import compare_all_exp
# It is nessesary to install pandas, numpy, scipy, and plotly libs,
# use 'pip3 install *lib_title' in terminal
# Telops lib will be installed automaticaly if it is not
#Folder with results of experiment from 2BARG
path = 'C:/Users/dflws/Desktop/Like_a_new/mech_part/Denal920/'
#Folder with IR movie for chosen experiment
# It is nessesary that the numbers of IR files is equal with number of experiments
# of "EXP #1" in folder 'path' IR file should br titled like
# "sometitle_you_want_1.hcc" use only "_" as a space between words
IR_path = 'C:/Users/dflws/Desktop/Like_a_new/thermal_part/Denal920/'
# IF you use another sample rate in oscilscope put it here:
sample_rate = 2e6
# Material title for report
material = 'Material'
# Th for IR filtration if you have IR movies
tr_c = 0.8
tr_stress = 0.1
tr_temperature = 0.055
fig, table= compare_all_exp(path = path,
mat = material,
IR = IR_path,
sr = sample_rate,
th = tr_c,
th_stress = tr_stress,
th_temperature = tr_temperature)
# write here any path you whant to save mechanical report
path = path
fig.write_html(f'{path}all_exp_mech.html')
table.to_csv(f'{path}all_exp_mech.csv')
#IR Results will put in folder with IR movie. Enjoy it.