MCPcopy Create free account
hub / github.com/BravoLu/OpenVehicleReID / Stack

Class Stack

utils/progress/progress/counter.py:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36
37class Stack(WriteMixin, Progress):
38 phases = (' ', '▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
39 hide_cursor = True
40
41 def update(self):
42 nphases = len(self.phases)
43 i = min(nphases - 1, int(self.progress * nphases))
44 self.write(self.phases[i])
45
46
47class Pie(Stack):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected