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
loggingpackage to record log - Export Excel with all the data and figures
- use
PyQt5.QThreadto 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
gitcommand 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 picturessrcmain.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.batrun.bat
TL;DR:
Click
initialize.batfor the first time and clickrun.batto start the journey!
- Run
initialize.batfor the first time to install all related packages (ONLY the first time) - Run
run.batto open the program (EVERY time)
Manual deployment (alternative):
cd srcpip install -r requirements.txtpython 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_filesfolder (all merged files in the future will be generated here) -
click the tab of
處理數據 -
Choose
大台MTSor小台MTSand 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.txtin the/input/smaller_MTS_data/merged_txt_filesfolder 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 (
CubeorCylinder) or you can key in a number in custom areaChoose
Cylinderfor demo -
Key in a folder name in
輸入存檔資料夾名稱field to save the output filesEnter
WTF_MTS_smallerfor demo -
Click
匯出Excel與Plotsbutton 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: madihsiang@gmail.com