This guide will walk you through the steps to generate Tornado plots for a given module in the AIgantry repository.
Start by cloning the AIgantry repository to your local machine.
git clone https://github.com/TTU-HEP/Tornado
cd AIgantry
Next, create a new Conda environment for this project with Python 3.9 and install the required dependencies.
conda create -n aienv python=3.9 -y
conda activate aienv
pip install -r requirements.txt
Create a directory for the modules, then add the modules with their associated images.
mkdir Modules
cd Modules
# Add your module files and images here!
cd ..
Before generating the Tornado plots, open the ArrowPlotScript.py
file and set the path to the Modules directory.
nano ArrowPlotScript.py
Inside the script, locate the section where the path is defined and modify it as needed:
base_dir = os.path.join('/home/akshriva/AIgantry/Tornado/github_copy', 'Modules')
Save the changes and exit the editor.
To generate the Tornado plots, follow these steps:
- Run the detection script:
This script will ask for the path to the directory. Enter the name of the module directory you created in Step 3.
python3 run_detect.py
- Run the Tornado plot script:
python3 ArrowPlotScript.py