Note

This is the documentation for the current state of the development branch of Qiskit Experiments. The documentation or APIs here can change prior to being released.

ExperimentData.add_analysis_callback

ExperimentData.add_analysis_callback(callback, **kwargs)[source]

Add analysis callback for running after experiment data jobs are finished.

This method adds the callback function to a queue to be run asynchronously after completion of any running jobs, or immediately if no running jobs. If this method is called multiple times the callback functions will be executed in the order they were added.

Parameters:
  • callback (Callable) – Callback function invoked when job finishes successfully. The callback function will be called as callback(expdata, **kwargs) where expdata is this DbExperimentData object, and kwargs are any additional keywork arguments passed to this method.

  • **kwargs (Any) – Keyword arguments to be passed to the callback function.