Get overall progress percentage. Returns: Progress (0.0 to 1.0)
(self)
| 115 | """ |
| 116 | completed_weight = sum(self.STAGE_WEIGHTS.get(s, 0) for s in range(1, self.current_stage)) |
| 117 | |
| 118 | current_weight = self.STAGE_WEIGHTS.get(self.current_stage, 0) * self.stage_progress |
| 119 | |
| 120 | return completed_weight + current_weight |
| 121 | |
| 122 | def _format_elapsed(self) -> str: |
| 123 | """Format elapsed time.""" |
| 124 | elapsed = time.time() - self.start_time |
| 125 | minutes = int(elapsed // 60) |
| 126 | seconds = int(elapsed % 60) |
| 127 | |
| 128 | if minutes > 0: |
| 129 | return f"{minutes:02d}:{seconds:02d}" |
| 130 | else: |
| 131 | return f"00:{seconds:02d}" |
| 132 | |
| 133 | def get_eta(self) -> Optional[str]: |
| 134 | """ |