From cb48e9a6d44fcbdc59f8449121f7c2a05ce120e2 Mon Sep 17 00:00:00 2001 From: Lauren Capelluto Date: Mon, 6 Jan 2020 11:32:30 -0500 Subject: [PATCH] Update deprecated call to cmd_qubits in the rescheduler (#3687) --- qiskit/pulse/reschedule.py | 2 +- test/python/scheduler/test_basic_scheduler.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qiskit/pulse/reschedule.py b/qiskit/pulse/reschedule.py index 735d67ed3e52..46778387a92f 100644 --- a/qiskit/pulse/reschedule.py +++ b/qiskit/pulse/reschedule.py @@ -79,7 +79,7 @@ def calculate_align_time(): def get_max_calibration_duration(): """Return the time needed to allow for readout discrimination calibration pulses.""" max_calibration_duration = 0 - for qubits in inst_map.cmd_qubits(cal_gate): + for qubits in inst_map.qubits_with_instruction(cal_gate): cmd = inst_map.get(cal_gate, qubits, np.pi, 0, np.pi) max_calibration_duration = max(cmd.duration, max_calibration_duration) return max_calibration_duration diff --git a/test/python/scheduler/test_basic_scheduler.py b/test/python/scheduler/test_basic_scheduler.py index 8ca64d0aff92..30e365c6f01c 100644 --- a/test/python/scheduler/test_basic_scheduler.py +++ b/test/python/scheduler/test_basic_scheduler.py @@ -287,7 +287,7 @@ def test_barriers_in_middle(self): class TestCmdDefBasicSchedule(QiskitTestCase): - """Scheduling tests for CmdDef which will soon be deprecated.""" + """Scheduling tests for CmdDef which is deprecated.""" def setUp(self): self.backend = FakeOpenPulse2Q()