aequilibrae.utils.python_signal#

Classes

PythonSignal(object)

This class provides a pure python equivalent of the Signal passing infrastructure present in QGIS.

class aequilibrae.utils.python_signal.PythonSignal(object)[source]#

This class provides a pure python equivalent of the Signal passing infrastructure present in QGIS. It takes updates in the same format as the QGIS progress bar manager used in QAequilibrae and translates them into TQDM syntax.

The expected structure of update data is a list where the first element is string describing the desired action:

[‘action’, *args]

The currently supported formats for actions are listed here:

  1. [‘finished’] - close out the current progress bar

  2. [‘refresh’] - force the current progress bar to refresh

  3. [‘reset’] - reset the current progress bar

  4. [‘start’, num_elements: int, desc: str] - start a new progress bar

  5. [‘set_position’, pos: int] - set the position of the current progress bar

  6. [‘set_text’, desc: str] - set the description of the current progress bar

  7. [‘update’, pos: int, desc: str] - set both pos and desc of current progress bar

emit(val)[source]#