Skip to content

Commit

Permalink
remove image from inputs (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyu00 authored Oct 26, 2022
1 parent 6cd2420 commit 00a9816
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qiskit_ibm_runtime/options/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ def _get_program_inputs(options: dict) -> dict:
}
)

known_keys = Options.__dataclass_fields__.keys()
known_keys = list(Options.__dataclass_fields__.keys())
known_keys.append("image")
# Add additional unknown keys.
for key in options.keys():
if key not in known_keys:
Expand Down
2 changes: 2 additions & 0 deletions test/unit/test_ibm_primitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ def test_old_options(self):
run_options = kwargs["options"]
for key, val in opt.items():
self.assertEqual(run_options[key], val)
inputs = kwargs["inputs"]
self.assertTrue(all(key not in inputs.keys() for key in opt))

def test_runtime_options(self):
"""Test RuntimeOptions specified as primitive options."""
Expand Down

0 comments on commit 00a9816

Please sign in to comment.