Usage¶
Generic import¶
To use the package just import:
import py3dic
or
import py3dic as mlt
To check if the installation is ok use:
mlt.__version__
DIC Analysis¶
To use the DIC analysis tools, the easiest method is to use the package entry points. Run the following command in a terminal:
tk_dic_analysis
This command opens a GUI for batch DIC analysis using camera data, which can calculate:
Strain maps
Displacement maps
Other relevant measurements
To merge and synchronize DIC data from both cameras and tensile testing machines, run:
tk_dic_merge
Prerequisites for using tk_dic_merge:
First run
tk_dic_analysisto produce resultsPrepare your tensile machine data by:
Converting it to the machine-agnostic format used by the py3dic package (an ASCII file with extension
.autd)Using tab (
\t) as separator and dot (.) as decimalEnsuring the first line contains the column names:
force_N,disp_mm,time_sPlacing the converted file in the “data_tensile” folder within the experiment folder
After launching tk_dic_merge, follow these steps:
Select the
.xlsxfile produced bytk_dic_analysisfrom the results folder * The tool will automatically attempt to locate the “data_tensile” folder and corresponding.autdmachine data file (compatible with Imada, Janin, and other machines)Synchronize the camera and tensile data using the offset slider in the GUI’s right pane
After setting the time offset between camera and tensile data, click “Perform Analysis” to generate final results