Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
astafan8 committed Oct 23, 2023
1 parent 9b83aee commit 0841782
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qcodes_contrib_drivers/drivers/DaylightSolutions/MIRcat.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import time
import sys
import ctypes
from typing import Optional, Any, Sequence, Tuple
from typing import Optional, Any, Sequence
from functools import partial

from qcodes import Instrument, Parameter
Expand Down Expand Up @@ -353,7 +353,7 @@ def set_pulse_parameters(self,
ctypes.c_float(pulse_width*1e9),
ctypes.c_float(current*1e3)])

def get_limits(self, chip: int = 0) -> Tuple[float, ...]:
def get_limits(self, chip: int = 0) -> tuple[float, ...]:
"""Get the limits for a given QCL chip.
Args:
Expand Down Expand Up @@ -791,7 +791,7 @@ def _set_wavenumber(self, wavenumber: float, chip: int = 0) -> None:
elif 1/self._range_chip1[0]/100 > wavenumber:
chip = 1
else:
raise ValueError('selected wavenumber is not supported')
raise ValueError(f'selected wavenumber {wavenumber} is not supported')

self.log.info(f'Set wavenumber to {wavenumber} on QCL chip {chip}.')
self._execute('MIRcatSDK_TuneToWW',
Expand Down

0 comments on commit 0841782

Please sign in to comment.