Resets to 0 iterations for repeated use. Consider combining with `leave=True`. Parameters ---------- total : int or float, optional. Total to use for the new bar.
(self, total=None)
| 1358 | self.last_print_t = cur_t |
| 1359 | |
| 1360 | def reset(self, total=None): |
| 1361 | """ |
| 1362 | Resets to 0 iterations for repeated use. |
| 1363 | |
| 1364 | Consider combining with `leave=True`. |
| 1365 | |
| 1366 | Parameters |
| 1367 | ---------- |
| 1368 | total : int or float, optional. Total to use for the new bar. |
| 1369 | """ |
| 1370 | self.n = 0 |
| 1371 | if total is not None: |
| 1372 | self.total = total |
| 1373 | if self.disable: |
| 1374 | return |
| 1375 | self.last_print_n = 0 |
| 1376 | self.last_print_t = self.start_t = self._time() |
| 1377 | self._ema_dn = EMA(self.smoothing) |
| 1378 | self._ema_dt = EMA(self.smoothing) |
| 1379 | self._ema_miniters = EMA(self.smoothing) |
| 1380 | self.refresh() |
| 1381 | |
| 1382 | def set_description(self, desc=None, refresh=True): |
| 1383 | """ |
no test coverage detected