MCPcopy Index your code
hub / github.com/mne-tools/mne-python / update_with_increment_value

Method update_with_increment_value

mne/utils/progressbar.py:126–139  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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."""

Callers 1

updateMethod · 0.95

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected