How cosc-499-w2026/capstone-project-team-10 works
Brachify is a desktop brachytherapy-planning application: users launch the GUI, import plan data, adjust 3D applicator geometry, inspect it, and export a report. The repository also contains anti-slop, a Python linting package with core rules and an optional FastAPI rule group. The graph includes both substantial products. Some Brachify workflow links and anti-slop runtime dispatch details are inferred from module structure or imports rather than shown calls; those links are dashed and marked unverified.
Main entry points: main_window.py Main window · __main__.py CLI · dicom_model.py Plan model · channels_model.py Channel model
Components 31
Brachify application
- Application launcher
src/launch.py - App lifecycle
src/classes/app.py - Configuration
src/settings/values.py - Main window
src/windows/main_window.py - Plan import
src/windows/views/import_view.py
Plan data and geometry
- Plan model
src/windows/models/dicom_model.py - DICOM reader
src/classes/dicom/fileio.py - Plan data
src/classes/dicom/data.py - Shape model
src/windows/models/shape_model.py - Cylinder model
src/windows/models/cylinder_model.py - Cylinder geometry
src/classes/mesh/cylinder.py - Channel model
src/windows/models/channels_model.py - Channel geometry
src/classes/mesh/channel.py - Tandem model
src/windows/models/tandem_model.py - Tandem geometry
src/classes/mesh/tandem.py - Mesh file I/O
src/classes/mesh/fileio.py
Display and reporting
- 3D viewport
src/windows/views/viewport.py - Export view
src/windows/views/export_view.py - PDF report
src/classes/pdf/template_reference.py
Anti-slop engine
- CLI
agent-skills/anti-slop-py/src/anti_slop/__main__.py - Lint configuration
agent-skills/anti-slop-py/src/anti_slop/engine/config.py - Rule catalog
agent-skills/anti-slop-py/src/anti_slop/engine/catalog.py - Lint runner
agent-skills/anti-slop-py/src/anti_slop/engine/runner.py - Rule and diagnostics
agent-skills/anti-slop-py/src/anti_slop/engine/rule.py - Rule context
agent-skills/anti-slop-py/src/anti_slop/engine/context.py - Scope analysis
agent-skills/anti-slop-py/src/anti_slop/engine/scopes.py - Review output
agent-skills/anti-slop-py/src/anti_slop/engine/review.py
Anti-slop rules
- Core rule set
agent-skills/anti-slop-py/src/anti_slop/rules - FastAPI rules
agent-skills/anti-slop-py/src/anti_slop/contrib/fastapi/rules - Route detection
agent-skills/anti-slop-py/src/anti_slop/contrib/fastapi/_routes.py
Other components
- Planner
Connections 37
- Planner → Application launcher: starts
README.md - Application launcher → App lifecycle: starts
src/launch.py - App lifecycle → Main window: initializes
src/classes/app.py - App lifecycle → Configuration: creates
src/classes/app.py - Planner → Plan import: imports plan
- Main window → Plan import: hosts
- Plan import → Plan model: loads plan
- Plan model → DICOM reader: reads DICOM
- DICOM reader → Plan data: populates
src/classes/dicom/fileio.py - Main window → Plan model: initializes
src/windows/main_window.py - Main window → Cylinder model: initializes
src/windows/main_window.py - Main window → Channel model: initializes
src/windows/main_window.py - Main window → Tandem model: initializes
src/windows/main_window.py - Plan model → Cylinder model: signals changes
src/windows/main_window.py - Plan model → Channel model: signals changes
src/windows/main_window.py - Cylinder model → Cylinder geometry: builds geometry
- Channel model → Channel geometry: builds geometry
src/windows/models/channels_model.py - Tandem model → Tandem geometry: builds geometry
src/windows/models/tandem_model.py - Channel model → Shape model: creates shapes
src/windows/models/channels_model.py - Tandem model → Shape model: creates shapes
src/windows/models/tandem_model.py - Main window → 3D viewport: initializes
src/windows/main_window.py - Planner → Export view: requests export
- Main window → Export view: hosts
src/windows/main_window.py - Export view → Mesh file I/O: exports mesh
src/windows/views/export_view.py - Export view → PDF report: creates report
src/windows/views/export_view.py - Planner → CLI: runs lint
- CLI → Lint configuration: loads settings
agent-skills/anti-slop-py/src/anti_slop/__main__.py - CLI → Rule catalog: selects rules
agent-skills/anti-slop-py/src/anti_slop/__main__.py - CLI → Lint runner: runs analysis
agent-skills/anti-slop-py/src/anti_slop/__main__.py - Lint runner → Rule and diagnostics: dispatches rules
- Rule catalog → Core rule set: registers rules
agent-skills/anti-slop-py/src/anti_slop/engine/catalog.py - Rule catalog → FastAPI rules: registers rules
- Core rule set → Rule context: reports findings
agent-skills/anti-slop-py/src/anti_slop/engine/context.py - FastAPI rules → Route detection: checks handlers
agent-skills/anti-slop-py/src/anti_slop/contrib/fastapi/_routes.py - Route detection → Scope analysis: resolves names
agent-skills/anti-slop-py/src/anti_slop/contrib/fastapi/_routes.py - Rule context → Rule and diagnostics: builds diagnostics
agent-skills/anti-slop-py/src/anti_slop/engine/context.py - CLI → Review output: formats review
agent-skills/anti-slop-py/src/anti_slop/__main__.py