Update progressbar with an increment. Parameters ---------- increment_value : int Value of the increment of process. The percent of the progressbar will be computed as ``(self.cur_value + increment_value / max_value) * 100``.
(self, increment_value)
| 124 | self.update_with_increment_value(cur_value - self._tqdm.n) |
| 125 | |
| 126 | def update_with_increment_value(self, increment_value): |
| 127 | """Update progressbar with an increment. |
| 128 | |
| 129 | Parameters |
| 130 | ---------- |
| 131 | increment_value : int |
| 132 | Value of the increment of process. The percent of the progressbar |
| 133 | will be computed as |
| 134 | ``(self.cur_value + increment_value / max_value) * 100``. |
| 135 | """ |
| 136 | try: |
| 137 | self._tqdm.update(increment_value) |
| 138 | except TypeError: # can happen during GC on Windows |
| 139 | pass |
| 140 | |
| 141 | def __iter__(self): |
| 142 | """Iterate to auto-increment the pbar with 1.""" |