Skip to content
This repository was archived by the owner on Dec 15, 2023. It is now read-only.

Commit 78845ea

Browse files
[DEM-943] Fix type-hinting.
1 parent fe0d857 commit 78845ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/qtt/measurements/acquisition/interfaces/acquisition_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def start_acquisition(self) -> None:
3636
"""
3737

3838
@abstractmethod
39-
def acquire(self, number_of_averages: int, timeout: Optional[float] = 30) -> List[DataArray]:
39+
def acquire(self, number_of_averages: int, timeout: float = 30) -> List[DataArray]:
4040
""" Reads raw-data from the acquisition device.
4141
4242
This method should be called after initialising and starting the acquisition.

src/qtt/measurements/acquisition/uhfli_scope_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def start_acquisition(self) -> None:
4141
self.__uhfli.daq.sync()
4242
self.__uhfli.daq.setInt(f'/{self._address}/scopes/0/enable', 1)
4343

44-
def acquire(self, number_of_averages: int=1, timeout: float=30) -> List[DataArray]:
44+
def acquire(self, number_of_averages: int, timeout: float = 30) -> List[DataArray]:
4545
""" Collects records from the UHFLI.
4646
4747
Args:

0 commit comments

Comments
 (0)