Skip to content

Commit

Permalink
update imports and remove unused logger
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusBC59 committed Jan 24, 2023
1 parent 75b5c34 commit 5c358d1
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions qcodes_contrib_drivers/drivers/HP/HP8594E.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@
import struct
import numpy as np
import datetime
import qcodes.utils.validators as vals
from qcodes.instrument.parameter import (
import qcodes.validators as vals
from qcodes.parameters import (
Parameter,
ParameterWithSetpoints,
ParamRawDataType,
)
from qcodes.instrument.visa import VisaInstrument
from qcodes.instrument import VisaInstrument
import numpy.typing as npt

log = logging.getLogger(__name__)


class HP8594E(VisaInstrument):
"""
Expand Down Expand Up @@ -170,7 +168,7 @@ def get_raw(self) -> ParamRawDataType:

class Trace(ParameterWithSetpoints):
""" """

def __init__(self, transfer_type: str = "bytes", *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
self.transfer_type = transfer_type
Expand All @@ -180,7 +178,6 @@ def __init__(self, transfer_type: str = "bytes", *args: Any, **kwargs: Any) -> N
else:
self.hp8594e = self.root_instrument


def get_raw(self) -> ParamRawDataType:
self.hp8594e.write("SNGLS")
if self.transfer_type == "ASCII":
Expand Down

0 comments on commit 5c358d1

Please sign in to comment.