Coverage for openhcs/pyqt_gui/utils/log_detection_utils.py: 0.0%
8 statements
« prev ^ index » next coverage.py v7.10.3, created at 2025-08-14 05:57 +0000
« prev ^ index » next coverage.py v7.10.3, created at 2025-08-14 05:57 +0000
1"""
2PyQt Log Detection Utils - Simple Re-exports
4This module just re-exports core log utilities for PyQt GUI.
5All logic is now in openhcs.core.log_utils.
6"""
8# Re-export everything from core utilities
9from openhcs.core.log_utils import (
10 LogFileInfo,
11 discover_logs,
12 classify_log_file,
13 is_relevant_log_file,
14 is_openhcs_log_file,
15 infer_base_log_path,
16 get_current_log_file_path
17)
18from pathlib import Path
19from typing import Optional
21# Simple compatibility alias
22def get_current_tui_log_path() -> Path:
23 """Get current log path as Path object."""
24 log_path = get_current_log_file_path()
25 return Path(log_path)
27# Compatibility alias for old function name
28def discover_all_logs(log_directory: Optional[Path] = None):
29 """Discover all OpenHCS logs in a directory."""
30 return discover_logs(log_directory=log_directory, include_main_log=False)