Files
overwatch/run_simulation.sh
2026-09-30 23:49:38 +00:00

22 lines
468 B
Bash
Executable File

#!/bin/bash
# Run radar simulation with venv setup
# Create venv if it doesn't exist
if [ ! -d "/tmp/radar_env" ]; then
echo "Creating virtual environment..."
python3 -m venv /tmp/radar_env
fi
# Activate venv and install dependencies
source /tmp/radar_env/bin/activate
pip install numpy scipy matplotlib --quiet
# Run the specified simulation
if [ -z "$1" ]; then
echo "Usage: $0 <simulation_script.py>"
exit 1
fi
echo "Running $1..."
python3 "$1"