Skip to content

Commit

Permalink
renamed load_sequencer_program to compile_and_upload
Browse files Browse the repository at this point in the history
  • Loading branch information
rbudhrani committed Jun 17, 2024
1 parent b024062 commit 04ea924
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions qmi/instruments/zurich_instruments/hdawg.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ def _get_awg_node(self, awg_channel: int) -> "zhinst.toolkit.driver.nodes.awg.AW
return self._device.awgs[self.CHANNEL_TO_CORE_MAPPING[awg_channel]]

@rpc_method
def load_sequencer_program(
self, awg_channel: int, sequencer_program: Union[str, "zhinst.toolkit.Sequence"]
) -> None:
def compile_and_upload(self, awg_channel: int, sequencer_program: Union[str, "zhinst.toolkit.Sequence"]) -> None:
"""Compile and upload the sequencer program.
Parameters:
Expand Down
4 changes: 2 additions & 2 deletions tests/instruments/zurich_instruments/test_hdawg.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def test_load_sequencer_program_with_string_sequence__calls_zi_method(self):
sequencer_code = "dummy code here"

# Act
self._instr.load_sequencer_program(1, sequencer_code)
self._instr.compile_and_upload(1, sequencer_code)

# Assert
self._awg_0.load_sequencer_program.assert_called_once_with(sequencer_code)
Expand All @@ -112,7 +112,7 @@ def test_load_sequencer_program_with_zi_sequence__calls_zi_method(self):
sequence = hdawg.zhinst.toolkit.Sequence()

# Act
self._instr.load_sequencer_program(1, sequence)
self._instr.compile_and_upload(1, sequence)

# Assert
self._awg_0.load_sequencer_program.assert_called_once_with(sequence)
Expand Down

0 comments on commit 04ea924

Please sign in to comment.