Skip to content

Commit

Permalink
Update experiment_data.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarGoldman committed Nov 27, 2023
1 parent a8dabc1 commit 314c42b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions qiskit_experiments/framework/experiment_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1070,11 +1070,13 @@ def _add_result_data(self, result: Result, job_id: Optional[str] = None) -> None
def _retrieve_data(self):
"""Retrieve job data if missing experiment data."""
# Get job results if missing in experiment data.
if self.provider is None and not self._result_data.copy():
LOG.warning(
"provider is None and there is no result data that are stored."
" no data was retrieved."
)
if self.provider is None:
if not self._result_data.copy():
# Adding warning so the user will have indication why the analysis may fail.
LOG.warning(
"provider is None and there is no result data that are stored."
" no data was retrieved."
)
return
retrieved_jobs = {}
jobs_to_retrieve = [] # the list of all jobs to retrieve from the server
Expand Down

0 comments on commit 314c42b

Please sign in to comment.