progress
progress ¶
AsyncProgressTracker ¶
Bases: ProgressTracker
Asynchronous version of progress tracker
Source code in src/process_manager/examples/monte_carlo/progress.py
ProgressStats
dataclass
¶
ProgressStats(
total_cases: int = 0,
completed_cases: int = 0,
failed_cases: int = 0,
cached_cases: int = 0,
current_case: Optional[str] = None,
start_time: Optional[datetime] = None,
end_time: Optional[datetime] = None,
)
Statistics for progress tracking
to_dict ¶
Convert stats to dictionary format
Source code in src/process_manager/examples/monte_carlo/progress.py
ProgressTracker ¶
ProgressTracker(
output_dir: Path,
progress_callback: Optional[Callable[[ProgressState, ProgressStats], None]] = None,
)
Tracks and reports progress of Monte Carlo simulation.
Features: - Detailed progress states - Progress statistics - Progress file output - Progress callback support - ETA calculation