Tutorial: https://github.com/DysonMa/MTS-Data-Transformer
This program is designed for graduate students who are currently studying at the NTU CE 812 lab.
Traditionally, we use Excel as our data processing tool to calculate Elastic Modulus with linear regression, and find maximum compressive strength with functions in Excel manaully.
Now, with this program, you can save the time of manual calculation and quickly get experimental data results by the code builded by PyQt5!
- Quickly calculate the results of all data and linear regression
- Simple and easy-to-use interface
- Error message box for any mistake
- use
logging
package to record log - Export Excel with all the data and figures
- use
PyQt5.QThread
to create another thread to calculate time-consuming tasks without affecting the GUI - user can choose smaller or bigger MTS type
- merge multiple files into a new file(only for smaller MTS)
- use
git
command to clone this repo - Download as zip
- Install Python first (3.5+ is good) --> https://www.python.org/downloads/
- This code use Python 3.8.5
- matplotlib, seaborn
- pyqt5
- scipy
- openpyxl
- logging
- pyinstaller...
input
: input files comes from MTSoutput
: all the datas and plots are listed in this folder according to the folder name you nameddemo
: for demo picturessrc
main.py
: main codeQtManager.py
: PyQt5 main controllerDataManager.py
: Data processingPlotManager.py
: Plot figures and canvasExcelManager.py
: Export ExcelThreadManager.py
: Schedule threads(long time task)Utilities.py
: Other utility functionsMTS.ui
: UI file of appearancerequirements.txt
: List all related packages and their versions
initialize.bat
run.bat
TL;DR:
Click
initialize.bat
for the first time and clickrun.bat
to start the journey!
- Run
initialize.bat
for the first time to install all related packages (ONLY the first time) - Run
run.bat
to open the program (EVERY time)
Manual deployment (alternative):
cd src
pip install -r requirements.txt
python main.py
-
Initial picture looks like this
-
(Optional) Select the tab of
合併多檔數據(僅小台MTS)
, and add the files to be merged, and arrange the order of the data, enter the file name, and click合併多檔
to complete the merge. The merged txt just generated will be generated in the/input/smaller_MTS_data/merged_txt_files
folder (all merged files in the future will be generated here) -
click the tab of
處理數據
-
Choose
大台MTS
or小台MTS
and click選擇待處理文件
button on the upper left of the window to choose any file from MTS
- bigger MTS: only single file
- smaller MTS: single file or multiple files are supported
Choose
WTF_MTS.txt
in the/input/smaller_MTS_data/merged_txt_files
folder for smaller MTS demo
-
Key in a number for
配比種類數量
which means the number of ratio type<p.s> No blank fields allowed
The datas below are just for demo, DO NOT take it seriously ^0^:
配比種類 配比數量 0.35 1 0.45 1 0.55 1 -
Choose specimen size (
Cube
orCylinder
) or you can key in a number in custom areaChoose
Cylinder
for demo -
Key in a folder name in
輸入存檔資料夾名稱
field to save the output filesEnter
WTF_MTS_smaller
for demo -
Click
匯出Excel與Plots
button to start the journey! -
All the data and figures are stored in save folder, i.e.
WTF_MTS_smaller
-
open
datas.xlsx
, you will see all the processed data, including the compressive strength, Elastic modulus and the loading history of each specimens.
Feel free to contact me if needed
- Author: madihsiang (R07)
- Email: [email protected]