From df8688aaee6c52ba6f38eaa1676303a3f90523d2 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Mon, 18 Apr 2022 08:31:12 +0100 Subject: [PATCH] Update vbancmd.py return only values relevant for a kind --- vbancmd/vbancmd.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/vbancmd/vbancmd.py b/vbancmd/vbancmd.py index 8e70312..72486b4 100644 --- a/vbancmd/vbancmd.py +++ b/vbancmd/vbancmd.py @@ -267,13 +267,19 @@ class VbanCmd(abc.ABC): @property def strip_levels(self): - """Returns the full level array for strips, PREFADER mode, before math conversion""" - return self.public_packet.inputlevels + """Returns the full strip level array for a kind, PREFADER mode, before math conversion""" + return tuple( + list(filter(lambda x: x != ((1 << 16) - 1), self.public_packet.inputlevels)) + ) @property def bus_levels(self): - """Returns the full level array for buses, before math conversion""" - return self.public_packet.outputlevels + """Returns the full bus level array for a kind, before math conversion""" + return tuple( + list( + filter(lambda x: x != ((1 << 16) - 1), self.public_packet.outputlevels) + ) + ) def logout(self): """sets thread flag, closes sockets"""