Skip to content

Commit

Permalink
Updated add_data tests passed qiskit-community#1268
Browse files Browse the repository at this point in the history
  • Loading branch information
Musa-Sina-Ertugrul committed Nov 15, 2023
1 parent 2dbba8a commit e7f46c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qiskit_experiments/framework/experiment_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,8 @@ def add_data(
else:
experiment_seperator[inner_datum[0]["metadata"]["experiment_type"]] = ExperimentData()
experiment_seperator[inner_datum[0]["metadata"]["experiment_type"]].add_data(inner_datum[0])
self._result_data.append(datum)

self._result_data.append(datum)

elif isinstance(datum, Result):
if datum["metadata"]:
Expand All @@ -821,6 +821,8 @@ def add_data(
if composite_flag:
tmp_exp_data._set_child_data(list(experiment_seperator.values()))
self._set_child_data([tmp_exp_data])

return tmp_exp_data

def __add_data(
self,
Expand Down

0 comments on commit e7f46c3

Please sign in to comment.