How seareye/levitatinginsect works
FlyPy is a Windows application for running levitating-insect experiments, integrating stimulus presentation, Chronos timing, Arduino synchronization, and camera acquisition. The principal workflow is an operator launching FlyAPI, configuring hardware and a session, running trials, and saving trial data. Installation and repair are a distinct documented workflow; an isolated Python 3.12 bridge supports vendor PySpin alongside the main Python 3.10 runtime. The graph combines sampled FlyAPI and installer code with README-documented capabilities; several application-internal calls and launcher details were not sampled, so uncertain links are omitted or marked unverified.
Main entry points: FlyAPI.py Trial and session manager · AllInOne.bat Install and launch · spinnaker_probe.py Spinnaker discovery · pyspin_bridge_setup.py Bridge environment setup
Components 19
Experiment runtime
- FlyAPI application
FlyAPI.py - Stimulus controls
FlyAPI.py - Looming stimulus
FlyAPI.py - Trial and session manager
FlyAPI.py
Timing and cameras
- Hardware bridge
FlyAPI.py - Chronos REST client
FlyAPI.py - Arduino sync firmware
ElegooFlyPySync/ElegooFlyPySync.ino - Camera acquisition
FlyAPI.py
Session results
- Trial files and logs
FlyAPI.py - Genotype workbook
Genotypes.xlsx
Install and repair
- Install and launch
AllInOne.bat - Dependency health and repair
installer/dependency_manager.py
Vendor camera support
- PySpin camera bridge
installer/pyspin_bridge.py - Spinnaker discovery
installer/spinnaker_probe.py - Bridge environment setup
installer/pyspin_bridge_setup.py - PySpin artifact install
installer/install_pyspin_artifact.py - Authorized vendor files
Other components
- Operator
- Chronos device
Connections 20
- Operator → Install and launch: installs or repairs
README.md - Operator → FlyAPI application: runs experiments
README.md - Install and launch → Dependency health and repair: verifies dependencies
README.md - Install and launch → Spinnaker discovery: checks PySpin
README.md - Install and launch → Bridge environment setup: sets up bridge
README.md - FlyAPI application → Stimulus controls: offers controls
README.md - FlyAPI application → Looming stimulus: presents stimulus
FlyAPI.py - FlyAPI application → Trial and session manager: runs sessions
FlyAPI.py - Trial and session manager → Looming stimulus: uses stimulus
FlyAPI.py - Trial and session manager → Hardware bridge: uses hardware
FlyAPI.py - Trial and session manager → Camera acquisition: uses cameras
FlyAPI.py - Trial and session manager → Trial files and logs: writes trial data
FlyAPI.py - Chronos REST client → Chronos device: sends REST requests
FlyAPI.py - Hardware bridge → Arduino sync firmware: coordinates sync
- Camera acquisition → PySpin camera bridge: uses when configured
- Spinnaker discovery → Authorized vendor files: searches authorized files
installer/spinnaker_probe.py - Spinnaker discovery → PySpin artifact install: stages selected artifact
installer/spinnaker_probe.py - Bridge environment setup → PySpin artifact install: installs selected artifact
installer/pyspin_bridge_setup.py - Bridge environment setup → PySpin camera bridge: configures bridge
installer/pyspin_bridge_setup.py - Trial and session manager → Genotype workbook: uses genotype identity