Background thread for updating the progress bar
(self)
| 121 | self._file.flush() |
| 122 | |
| 123 | def _timer_func(self): |
| 124 | """Background thread for updating the progress bar""" |
| 125 | while self._running: |
| 126 | elapsed = default_timer() - self._start_time |
| 127 | if elapsed > self._minimum: |
| 128 | self._update_bar(elapsed) |
| 129 | time.sleep(self._dt) |
| 130 | |
| 131 | def _update_bar(self, elapsed): |
| 132 | s = self._state |
nothing calls this directly
no test coverage detected