This files serves as documentation for the pruning interface which we create using PySide2, and OpenGL. For rendering shaders, we utilize version 330 core of glsl.
The interface is launched using one file in the scripts folder. To get to the folder, in the terminal, type in
cd scripts
To launch the interface, in a command prompt window, type:
python DrawTest.py
This will launch the initial window screen after prompting the user three questions:
- What is the Participant's ID?
- What ordering: (A)t End or (B)uild Off?
- What guideline: (S)patial or (R)ule?
Based on the information input by the user, the system determines which workflow to grab from workflow.json.
For example, if the user wants to run the Spatial At End condition for participant number 3, then for each question, the user inputs:
- 3
- a
- s
IF you want to run the "Test" workflow, when editing data, then you must input "test" for the ordering and guideline prompts. If no input value matches either choice or "test" for the ordering or guideline, the system will prompt again until the value is selected.
To help render text, we utilize the freetype-py library. To download use the command:
pip install freetype-py
This library allows us to use pre-existing fft files for different fonts to render in OpenGL.