Coverage for openhcs/pyqt_gui/utils/log_detection_utils.py: 0.0%

8 statements  

« prev     ^ index     » next       coverage.py v7.11.0, created at 2025-11-04 02:09 +0000

1""" 

2PyQt Log Detection Utils - Simple Re-exports 

3 

4This module just re-exports core log utilities for PyQt GUI. 

5All logic is now in openhcs.core.log_utils. 

6""" 

7 

8# Re-export everything from core utilities 

9from openhcs.core.log_utils import ( 

10 discover_logs, 

11 get_current_log_file_path 

12) 

13from pathlib import Path 

14from typing import Optional 

15 

16# Simple compatibility alias 

17def get_current_tui_log_path() -> Path: 

18 """Get current log path as Path object.""" 

19 log_path = get_current_log_file_path() 

20 return Path(log_path) 

21 

22# Compatibility alias for old function name 

23def discover_all_logs(log_directory: Optional[Path] = None): 

24 """Discover all OpenHCS logs in a directory.""" 

25 return discover_logs(log_directory=log_directory, include_main_log=False)