blacs.plugins.progress_bar.Plugin
- class blacs.plugins.progress_bar.Plugin(initial_settings)[source]
Bases:
object
Methods
__init__
(initial_settings)close
()Figure out what's going to happen next: a wait, a time marker, or a regular update.
mainloop
()plugin_setup_complete
(BLACS)set_menu_instance
(menu)set_notification_instances
(notifications)update_bar_style
([marker, wait, previous])Update the bar's style to reflect the next marker or wait, according to self.next_marker_index or self.next_wait_index.
update_bar_value
([marker, wait])Update the progress bar with the current time elapsed.
Attributes
Class wrapping a callable.
Class wrapping a callable.
- get_next_thing()[source]
Figure out what’s going to happen next: a wait, a time marker, or a regular update. Return a string saying which, and a float saying how long from now it will occur. If the thing has already happened but not been taken into account by our processing yet, then return zero for the time.
- on_science_over
Class wrapping a callable. At present only differs from a regular function in that it has a “priority” attribute - lower numbers means higher priority. If there are multiple callbacks triggered by the same event, they will be returned in order of priority by get_callbacks
- on_science_starting
Class wrapping a callable. At present only differs from a regular function in that it has a “priority” attribute - lower numbers means higher priority. If there are multiple callbacks triggered by the same event, they will be returned in order of priority by get_callbacks