Skip to content

Commit

Permalink
Add old alias for DS4000
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen committed Aug 23, 2022
1 parent 9a4e87c commit 3b8c69c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions qcodes/instrument_drivers/rigol/DS4000.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""
Old alias for RigolDS4000 for backwards compatibility.
Will eventually be deprecated and removed.
"""
from .RigolDS4000 import (
RigolDS4000,
RigolDS4000Channel,
RigolDS4000TraceNotReady,
ScopeArray,
)


class DS4000(RigolDS4000):
pass
6 changes: 3 additions & 3 deletions qcodes/instrument_drivers/rigol/RigolDS4000.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
log = logging.getLogger(__name__)


class TraceNotReady(Exception):
class RigolDS4000TraceNotReady(Exception):
pass


Expand Down Expand Up @@ -66,9 +66,9 @@ def prepare_curvedata(self) -> None:

def get_raw(self) -> ParamRawDataType:
assert isinstance(self.instrument, RigolDS4000Channel)
assert isinstance(self.root_instrument, DS4000)
assert isinstance(self.root_instrument, RigolDS4000)
if not self.trace_ready:
raise TraceNotReady(
raise RigolDS4000TraceNotReady(
"Please run prepare_curvedata to prepare "
"the scope for giving a trace."
)
Expand Down

0 comments on commit 3b8c69c

Please sign in to comment.