MCPcopy
hub / github.com/mne-tools/mne-python / update

Method update

mne/utils/progressbar.py:114–124  ·  view source on GitHub ↗

Update progressbar with current value of process. Parameters ---------- cur_value : number Current value of process. Should be <= max_value (but this is not enforced). The percent of the progressbar will be computed as ``(cur_value / max

(self, cur_value)

Source from the content-addressed store, hash-verified

112 )
113
114 def update(self, cur_value):
115 """Update progressbar with current value of process.
116
117 Parameters
118 ----------
119 cur_value : number
120 Current value of process. Should be <= max_value (but this is not
121 enforced). The percent of the progressbar will be computed as
122 ``(cur_value / max_value) * 100``.
123 """
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.

Callers 15

__enter__Method · 0.95
__exit__Method · 0.95
_compute_corrsFunction · 0.95
get_configFunction · 0.45
_auto_weakrefFunction · 0.45
_split_psd_kwargsFunction · 0.45
__copy__Method · 0.45
__init__Method · 0.45
runMethod · 0.45
_check_scaling_inputsFunction · 0.45

Calls 1

Tested by 2

_identity_blockFunction · 0.36
_identity_block_wideFunction · 0.36