Update vbancmd.py

add strip_levels, bus_levels property objects to base class
This commit is contained in:
onyx-and-iris 2022-04-13 06:17:22 +01:00
parent 1c0ebfa1d1
commit 7f2a3ef7e5

View File

@ -265,6 +265,16 @@ class VbanCmd(abc.ABC):
def reset(self) -> NoReturn: def reset(self) -> NoReturn:
self.apply_profile("base") self.apply_profile("base")
@property
def strip_levels(self):
"""Returns the full level array for strips, PREFADER mode, before math conversion"""
return self.public_packet.inputlevels
@property
def bus_levels(self):
"""Returns the full level array for buses, before math conversion"""
return self.public_packet.outputlevels
def logout(self): def logout(self):
"""sets thread flag, closes sockets""" """sets thread flag, closes sockets"""
self.running = False self.running = False