added multidevice support
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
import logging
|
||||
|
||||
from .device import LibreVNADevice
|
||||
from .enums import (
|
||||
HardwareFamily,
|
||||
PacketType,
|
||||
@@ -71,4 +70,14 @@ __all__ = [
|
||||
"VNASweepSettings",
|
||||
]
|
||||
|
||||
|
||||
def __getattr__(name: str):
|
||||
"""Load USB-backed device class only when native hardware access is requested."""
|
||||
if name == "LibreVNADevice":
|
||||
from .device import LibreVNADevice
|
||||
|
||||
return LibreVNADevice
|
||||
raise AttributeError(name)
|
||||
|
||||
|
||||
logging.getLogger(__name__).addHandler(logging.NullHandler())
|
||||
|
||||
Reference in New Issue
Block a user