xair-api 2.3.2__py3-none-any.whl → 2.4.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- xair_api/__init__.py +1 -1
- xair_api/adapter.py +13 -6
- xair_api/bus.py +6 -6
- xair_api/config.py +44 -44
- xair_api/dca.py +9 -9
- xair_api/errors.py +1 -1
- xair_api/fx.py +9 -9
- xair_api/headamp.py +49 -0
- xair_api/kinds.py +14 -15
- xair_api/lr.py +6 -6
- xair_api/meta.py +2 -2
- xair_api/rtn.py +12 -12
- xair_api/shared.py +168 -168
- xair_api/strip.py +7 -7
- xair_api/util.py +1 -1
- xair_api/xair.py +27 -24
- {xair_api-2.3.2.dist-info → xair_api-2.4.1.dist-info}/METADATA +28 -18
- xair_api-2.4.1.dist-info/RECORD +20 -0
- {xair_api-2.3.2.dist-info → xair_api-2.4.1.dist-info}/WHEEL +1 -1
- xair_api-2.3.2.dist-info/RECORD +0 -20
- xair_api-2.3.2.dist-info/entry_points.txt +0 -7
- {xair_api-2.3.2.dist-info → xair_api-2.4.1.dist-info}/LICENSE +0 -0
xair_api/rtn.py
CHANGED
|
@@ -18,10 +18,10 @@ class IRtn(abc.ABC):
|
|
|
18
18
|
self.logger = logger.getChild(self.__class__.__name__)
|
|
19
19
|
|
|
20
20
|
def getter(self, param: str):
|
|
21
|
-
return self._remote.query(f
|
|
21
|
+
return self._remote.query(f'{self.address}/{param}')
|
|
22
22
|
|
|
23
23
|
def setter(self, param: str, val: int):
|
|
24
|
-
self._remote.send(f
|
|
24
|
+
self._remote.send(f'{self.address}/{param}', val)
|
|
25
25
|
|
|
26
26
|
@abc.abstractmethod
|
|
27
27
|
def address(self):
|
|
@@ -41,12 +41,12 @@ class AuxRtn(IRtn):
|
|
|
41
41
|
Returns an AuxRtn class of a kind.
|
|
42
42
|
"""
|
|
43
43
|
AUXRTN_cls = type(
|
|
44
|
-
f
|
|
44
|
+
f'AuxRtn{remote.kind}',
|
|
45
45
|
(cls,),
|
|
46
46
|
{
|
|
47
47
|
**{
|
|
48
48
|
_cls.__name__.lower(): type(
|
|
49
|
-
f
|
|
49
|
+
f'{_cls.__name__}{remote.kind}', (_cls, cls), {}
|
|
50
50
|
)(remote, index)
|
|
51
51
|
for _cls in (
|
|
52
52
|
Config,
|
|
@@ -56,18 +56,18 @@ class AuxRtn(IRtn):
|
|
|
56
56
|
Group,
|
|
57
57
|
)
|
|
58
58
|
},
|
|
59
|
-
|
|
59
|
+
'send': tuple(
|
|
60
60
|
Send.make(cls, i, remote)
|
|
61
61
|
for i in range(remote.kind.num_bus + remote.kind.num_fx)
|
|
62
62
|
),
|
|
63
|
-
|
|
63
|
+
'mute': mute_prop(),
|
|
64
64
|
},
|
|
65
65
|
)
|
|
66
66
|
return AUXRTN_cls(remote, index)
|
|
67
67
|
|
|
68
68
|
@property
|
|
69
69
|
def address(self):
|
|
70
|
-
return
|
|
70
|
+
return '/rtn/aux'
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
class FxRtn(IRtn):
|
|
@@ -83,12 +83,12 @@ class FxRtn(IRtn):
|
|
|
83
83
|
Returns an FxRtn class of a kind.
|
|
84
84
|
"""
|
|
85
85
|
FXRTN_cls = type(
|
|
86
|
-
f
|
|
86
|
+
f'FxRtn{remote.kind}',
|
|
87
87
|
(cls,),
|
|
88
88
|
{
|
|
89
89
|
**{
|
|
90
90
|
_cls.__name__.lower(): type(
|
|
91
|
-
f
|
|
91
|
+
f'{_cls.__name__}{remote.kind}', (_cls, cls), {}
|
|
92
92
|
)(remote, index)
|
|
93
93
|
for _cls in (
|
|
94
94
|
Config,
|
|
@@ -98,15 +98,15 @@ class FxRtn(IRtn):
|
|
|
98
98
|
Group,
|
|
99
99
|
)
|
|
100
100
|
},
|
|
101
|
-
|
|
101
|
+
'send': tuple(
|
|
102
102
|
Send.make(cls, i, remote, index)
|
|
103
103
|
for i in range(remote.kind.num_bus + remote.kind.num_fx)
|
|
104
104
|
),
|
|
105
|
-
|
|
105
|
+
'mute': mute_prop(),
|
|
106
106
|
},
|
|
107
107
|
)
|
|
108
108
|
return FXRTN_cls(remote, index)
|
|
109
109
|
|
|
110
110
|
@property
|
|
111
111
|
def address(self):
|
|
112
|
-
return f
|
|
112
|
+
return f'/rtn/{self.index}'
|