Major Features: • Advanced topological sorting algorithm with cycle detection and resolution • Intelligent pipeline optimization with parallelization analysis • Critical path analysis and performance metrics calculation • Comprehensive .mflow file converter for seamless UI-to-API integration • Complete modular UI framework with node-based pipeline editor • Enhanced model node properties (scpu_fw_path, ncpu_fw_path) • Professional output formatting without emoji decorations Technical Improvements: • Graph theory algorithms (DFS, BFS, topological sort) • Automatic dependency resolution and conflict prevention • Multi-criteria pipeline optimization • Real-time stage count calculation and validation • Comprehensive configuration validation and error handling • Modular architecture with clean separation of concerns New Components: • MFlow converter with topology analysis (core/functions/mflow_converter.py) • Complete node system with exact property matching • Pipeline editor with visual node connections • Performance estimation and dongle management panels • Comprehensive test suite and demonstration scripts 🤖 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
31 lines
808 B
Python
31 lines
808 B
Python
"""
|
|
Configuration management for the Cluster4NPU UI application.
|
|
|
|
This module provides centralized configuration management including themes,
|
|
settings, user preferences, and application state persistence.
|
|
|
|
Available Components:
|
|
- theme: QSS styling and color constants
|
|
- settings: Application settings and preferences management
|
|
|
|
Usage:
|
|
from cluster4npu_ui.config import apply_theme, get_settings
|
|
|
|
# Apply theme to application
|
|
apply_theme(app)
|
|
|
|
# Access settings
|
|
settings = get_settings()
|
|
recent_files = settings.get_recent_files()
|
|
"""
|
|
|
|
from .theme import apply_theme, Colors, HARMONIOUS_THEME_STYLESHEET
|
|
from .settings import get_settings, Settings
|
|
|
|
__all__ = [
|
|
"apply_theme",
|
|
"Colors",
|
|
"HARMONIOUS_THEME_STYLESHEET",
|
|
"get_settings",
|
|
"Settings"
|
|
] |