Skip to content

Commit 22f9f75

Browse files
committed
Fixup run_analysis
1 parent a55cf51 commit 22f9f75

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

qiskit_experiments/base_experiment.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,18 +132,11 @@ def run(
132132
# Return the ExperimentData future
133133
return experiment_data
134134

135-
def run_analysis(
136-
self, experiment_data, save=True, return_figures=False, **options
137-
) -> ExperimentData:
135+
def run_analysis(self, experiment_data, **options) -> ExperimentData:
138136
"""Run analysis and update ExperimentData with analysis result.
139137
140138
Args:
141139
experiment_data (ExperimentData): the experiment data to analyze.
142-
save (bool): if True save analysis results and figures to the
143-
:class:`ExperimentData`.
144-
return_figures (bool): if true return a pair of
145-
``(analysis_results, figures)``,
146-
otherwise return only analysis_results.
147140
options: additional analysis options. Any values set here will
148141
override the value from :meth:`analysis_options`
149142
for the current run.
@@ -163,8 +156,9 @@ def run_analysis(
163156
analysis_options = analysis_options.__dict__
164157

165158
# Run analysis
159+
# pylint: disable = not-callable
166160
analysis = self.__analysis_class__()
167-
analysis.run(experiment_data, **analysis_options)
161+
analysis.run(experiment_data, save=True, return_figures=False, **analysis_options)
168162
return experiment_data
169163

170164
@property

0 commit comments

Comments
 (0)