spinn_machine.utilities package¶
Submodules¶
spinn_machine.utilities.ordered_set module¶
spinn_machine.utilities.progress_bar module¶
-
class
spinn_machine.utilities.progress_bar.
ProgressBar
(total_number_of_things_to_do, string_describing_what_being_progressed, step_character='=', end_character='|')[source]¶ Bases:
object
Progress bar for telling the user where a task is up to
-
MAX_LENGTH_IN_CHARS
= 60¶
-
over
(collection)[source]¶ Simple wrapper for the cases where the progress bar is being used to show progress through the iteration over a single collection. The progress bar should have been initialised to the size of the collection being iterated over.
Parameters: collection – The base collection (any iterable) being iterated over Returns: An iterable. Expected to be directly used in a for.
-