Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
rbudhrani committed Jul 16, 2024
1 parent 18a3dee commit 55de244
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions qmi/instruments/thorlabs/mpc320.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,6 @@ def is_move_completed(self, channel_number: int, timeout: float = DEFAULT_RESPON
_logger.debug("[%s] Channel %d move not completed yet", self._name, channel_number)
return False

return resp.chan_ident == Thorlabs_Mpc320_ChannelMap[channel_number]

@rpc_method
def save_parameter_settings(self, channel_number: int, message_id: int) -> None:
"""
Expand All @@ -400,7 +398,8 @@ def save_parameter_settings(self, channel_number: int, message_id: int) -> None:
Parameters:
channel_number: The channel to address.
message_id: ID of message whose parameters need to be saved. Must be provided as a hex number e.g. 0x04B6
message_id: ID of message whose parameters need to be saved.
Must be provided as a hex number e.g. 0x04B6
"""
_logger.info("[%s] Saving parameters of message %d", self._name, message_id)
self._check_is_open()
Expand Down

0 comments on commit 55de244

Please sign in to comment.