Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

11 changes: 11 additions & 0 deletions src/qcodes/instrument_drivers/HP/HP8133A.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,15 @@
Module left for backwards compatibility. Will be deprecated and removed eventually.
"""

import warnings

from qcodes.utils import QCoDeSDeprecationWarning

from .HP_8133A import HP8133A

warnings.warn(
"The `qcodes._drivers.HP.HP8133A` module is deprecated. "
"Please import drivers from from `qcodes.instrument_drivers.HP` instead.",
category=QCoDeSDeprecationWarning,
stacklevel=2,
)
11 changes: 11 additions & 0 deletions src/qcodes/instrument_drivers/HP/HP8753D.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,15 @@
Module left for backwards compatibility. Will be deprecated and removed eventually.
"""

import warnings

from qcodes.utils import QCoDeSDeprecationWarning

from .HP_8753D import HP8753D

warnings.warn(
"The `qcodes._drivers.HP.HP8753D` module is deprecated. "
"Please import drivers from from `qcodes.instrument_drivers.HP` instead.",
category=QCoDeSDeprecationWarning,
stacklevel=2,
)
119 changes: 0 additions & 119 deletions src/qcodes/instrument_drivers/Lakeshore/Model_325.py

This file was deleted.

58 changes: 0 additions & 58 deletions src/qcodes/instrument_drivers/Lakeshore/Model_336.py

This file was deleted.

64 changes: 0 additions & 64 deletions src/qcodes/instrument_drivers/Lakeshore/Model_372.py

This file was deleted.

11 changes: 11 additions & 0 deletions src/qcodes/instrument_drivers/basel/sp983c.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,19 @@

"""

import warnings

from qcodes.utils import QCoDeSDeprecationWarning

from .BaselSP983c import BaselSP983c

warnings.warn(
"The `qcodes._drivers.basel.sp983c` module is deprecated. "
"Please import drivers from from `qcodes.instrument_drivers.basel` instead.",
category=QCoDeSDeprecationWarning,
stacklevel=2,
)


class SP983C(BaselSP983c):
def get_idn(self) -> dict[str, str | None]:
Expand Down
11 changes: 11 additions & 0 deletions src/qcodes/instrument_drivers/basel/sp983c_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,15 @@

"""

import warnings

from qcodes.utils import QCoDeSDeprecationWarning

from .BaselSP983a import BaselSP983a as SP983A

warnings.warn(
"The `qcodes._drivers.basel.sp983c_remote` module is deprecated. "
"Please import drivers from from `qcodes.instrument_drivers.basel` instead.",
category=QCoDeSDeprecationWarning,
stacklevel=2,
)
8 changes: 8 additions & 0 deletions src/qcodes/instrument_drivers/rohde_schwarz/SGS100A.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
from typing import TYPE_CHECKING

from typing_extensions import deprecated

import qcodes.validators as vals
from qcodes.instrument import VisaInstrument, VisaInstrumentKWArgs
from qcodes.parameters import create_on_off_val_mapping
from qcodes.utils.deprecate import QCoDeSDeprecationWarning

if TYPE_CHECKING:
from typing_extensions import Unpack
Expand Down Expand Up @@ -334,5 +337,10 @@ def off(self) -> None:
self.status("off")


@deprecated(
"RohdeSchwarz_SGS100A is deprecated. Please use qcodes.instrument_drivers.rohde_schwarz.RohdeSchwarzSGS100A instead.",
category=QCoDeSDeprecationWarning,
stacklevel=1,
)
class RohdeSchwarz_SGS100A(RohdeSchwarzSGS100A):
pass
9 changes: 9 additions & 0 deletions src/qcodes/instrument_drivers/signal_hound/USB_SA124B.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

"""

from typing_extensions import deprecated

from qcodes.utils.deprecate import QCoDeSDeprecationWarning

from .SignalHound_USB_SA124B import (
Constants,
ExternalRefParameter,
Expand All @@ -15,5 +19,10 @@
)


@deprecated(
"SignalHound_USB_SA124B is deprecated. Please use qcodes.instrument_drivers.signal_hound.SignalHoundUSBSA124B instead.",
category=QCoDeSDeprecationWarning,
stacklevel=1,
)
class SignalHound_USB_SA124B(SignalHoundUSBSA124B):
pass
8 changes: 8 additions & 0 deletions src/qcodes/instrument_drivers/stanford_research/SG384.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
from typing import TYPE_CHECKING

from typing_extensions import deprecated

from qcodes import validators as vals
from qcodes.instrument import VisaInstrument, VisaInstrumentKWArgs
from qcodes.utils.deprecate import QCoDeSDeprecationWarning

if TYPE_CHECKING:
from typing_extensions import Unpack
Expand Down Expand Up @@ -226,6 +229,11 @@ def __init__(
self.connect_message()


@deprecated(
"SRS_SG384 is deprecated. Please use qcodes.instrument_drivers.stanford_research.SG384 instead.",
category=QCoDeSDeprecationWarning,
stacklevel=1,
)
class SRS_SG384(SG384):
"""
Deprecated alternative name for backwards compatibility
Expand Down
Loading
Loading