ProgServer#
- prog_server.run(**kwargs)#
Start the server and block until it is stopped.
- Parameters
host (str, optional) – Server host. Defaults to ‘127.0.0.1’.
port (int, optional) – Server port. Defaults to 8555.
debug (bool, optional) – If the server is started in debug mode
models (dict[str, PrognosticsModel]) – a dictionary of extra models to consider. The key is the name used to identify it.
predictors (dict[str, predictors.Predictor]) – a dictionary of extra predictors to consider. The key is the name used to identify it.
state_estimators (dict[str, state_estimators.StateEstimator]) – a dictionary of extra estimators to consider. The key is the name used to identify it.
- prog_server.start(timeout: float = 10, **kwargs) None #
Start the server (not blocking).
- Parameters
timeout (float, optional) – Timeout in seconds for starting the service
- Keyword Arguments
host (str, optional) – Server host. Defaults to ‘127.0.0.1’.
port (int, optional) – Server port. Defaults to 8555.
debug (bool, optional) – If the server is started in debug mode
models (dict[str, PrognosticsModel]) – a dictionary of extra models to consider. The key is the name used to identify it.
predictors (dict[str, predictors.Predictor]) – a dictionary of extra predictors to consider. The key is the name used to identify it.
state_estimators (dict[str, state_estimators.StateEstimator]) – a dictionary of extra estimators to consider. The key is the name used to identify it.