Skip to content

Commit

Permalink
Fix bugs in BasePlotter and CurveAnalysis test
Browse files Browse the repository at this point in the history
  • Loading branch information
conradhaupt committed Sep 15, 2022
1 parent 6bb2142 commit 9f17386
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions qiskit_experiments/visualization/plotters/base_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,7 @@ def set_figure_data(self, **data_kwargs):

# Warn if any data-keys are not expected.
unknown_data_keys = [
data_key
for data_key in data_kwargs
if data_key not in self.expected_figure_data_keys()()
data_key for data_key in data_kwargs if data_key not in self.expected_figure_data_keys()
]
for unknown_data_key in unknown_data_keys:
warnings.warn(
Expand Down
2 changes: 1 addition & 1 deletion test/curve_analysis/test_baseclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class InvalidClass:
analysis.set_options(data_processor=InvalidClass())

with self.assertRaises(TypeError):
analysis.set_options(curve_plotter=InvalidClass())
analysis.set_options(plotter=InvalidClass())

def test_end_to_end_single_function(self):
"""Integration test for single function."""
Expand Down

0 comments on commit 9f17386

Please sign in to comment.