Skip to content

Commit

Permalink
fix: updated tekhsi_connect.py by removing multiple import errors.
Browse files Browse the repository at this point in the history
Removed duplicate imports.
Prefixed unused term for unused global variables.

Signed-off-by: Shashank P <[email protected]>
  • Loading branch information
u625355 authored Sep 9, 2024
1 parent 38fa1aa commit e1b3257
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/tekhsi/tek_hsi_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

from atexit import register
from enum import Enum
from contextlib import contextmanager

from typing import List, Optional, Dict

Expand Down Expand Up @@ -214,7 +213,7 @@ def verbose(self, value: bool):
################################################################################################
# Context Manager Methods
################################################################################################
@contextmanager
@contextlib.contextmanager
def access_data(self, on: AcqWaitOn = AcqWaitOn.NewData, after: float = -1):
"""Grants access to data.
Expand Down Expand Up @@ -650,7 +649,7 @@ def _read_waveform(self, header: WaveformHeader):
)

sample_index = 0
data_size = header.sourcewidth
unused_data_size = header.sourcewidth
request = WaveformRequest(sourcename=header.sourcename, chunksize=self.chunksize)
response_iterator = self.native.GetWaveform(request)
dt = None
Expand Down

0 comments on commit e1b3257

Please sign in to comment.