app

GONet Wizard Dashboard Application Entry Point.

This module initializes the GONet Wizard Dash application and performs environment validation before interactive components are used.

Key responsibilities:

  • Loads and validates critical environment variables through DashboardConfig

  • Assigns data and image paths to the shared env module used across the dashboard

  • Imports and registers all callback functions to enable interactivity

  • Ensures that configuration logic is only executed when explicitly called (e.g., at launch)

This script is suitable as the WSGI entry point for deployment scenarios (e.g., with Gunicorn), since the Dash app object is imported and layout is assigned elsewhere (in server.py).

By isolating configuration and callback registration inside the config_app() function, this design avoids triggering I/O or environment prompts during testing or static analysis.

Functions:

GONet_Wizard.GONet_dashboard.src.app.config_app()[source]

Configure the GONet Dashboard app by performing environment validation, assigning layout paths, and registering interactive callbacks.

This function should be explicitly called during app startup to avoid environment prompts at import time. It handles the following setup tasks:

  • Loads the dashboard configuration using DashboardConfig, which prompts for required environment variables like GONET_ROOT and optionally GONET_ROOT_IMG.

  • Populates the shared env module with the resolved paths so they can be accessed by plotting, filtering, and I/O logic across the dashboard.

  • Registers all Dash callback functions by importing callbacks.

This function is safe to skip during automated testing or CLI-only workflows that do not require the full Dash app stack.

Constants

DASHBOARD_DATA_PATHpathlib.Path

Loaded from the initialized GONet_Wizard.settings.DashboardConfig.

GONET_IMAGES_PATHpathlib.Path or None

Loaded from the initialized GONet_Wizard.settings.DashboardConfig.