cdp-client 2.0.3__tar.gz → 2.0.5__tar.gz
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.
- {cdp-client-2.0.3/cdp_client.egg-info → cdp-client-2.0.5}/PKG-INFO +1 -1
- {cdp-client-2.0.3 → cdp-client-2.0.5}/cdp_client/cdp.py +7 -1
- {cdp-client-2.0.3 → cdp-client-2.0.5/cdp_client.egg-info}/PKG-INFO +1 -1
- {cdp-client-2.0.3 → cdp-client-2.0.5}/setup.py +1 -1
- {cdp-client-2.0.3 → cdp-client-2.0.5}/LICENSE.txt +0 -0
- {cdp-client-2.0.3 → cdp-client-2.0.5}/MANIFEST.in +0 -0
- {cdp-client-2.0.3 → cdp-client-2.0.5}/README.rst +0 -0
- {cdp-client-2.0.3 → cdp-client-2.0.5}/cdp_client/__init__.py +0 -0
- {cdp-client-2.0.3 → cdp-client-2.0.5}/cdp_client/cdp_pb2.py +0 -0
- {cdp-client-2.0.3 → cdp-client-2.0.5}/cdp_client/tests/__init__.py +0 -0
- {cdp-client-2.0.3 → cdp-client-2.0.5}/cdp_client/tests/fake_data.py +0 -0
- {cdp-client-2.0.3 → cdp-client-2.0.5}/cdp_client/tests/test_client.py +0 -0
- {cdp-client-2.0.3 → cdp-client-2.0.5}/cdp_client/tests/test_connection.py +0 -0
- {cdp-client-2.0.3 → cdp-client-2.0.5}/cdp_client/tests/test_main.py +0 -0
- {cdp-client-2.0.3 → cdp-client-2.0.5}/cdp_client/tests/test_node.py +0 -0
- {cdp-client-2.0.3 → cdp-client-2.0.5}/cdp_client/tests/test_nodetree.py +0 -0
- {cdp-client-2.0.3 → cdp-client-2.0.5}/cdp_client/tests/test_requests.py +0 -0
- {cdp-client-2.0.3 → cdp-client-2.0.5}/cdp_client.egg-info/SOURCES.txt +0 -0
- {cdp-client-2.0.3 → cdp-client-2.0.5}/cdp_client.egg-info/dependency_links.txt +0 -0
- {cdp-client-2.0.3 → cdp-client-2.0.5}/cdp_client.egg-info/requires.txt +0 -0
- {cdp-client-2.0.3 → cdp-client-2.0.5}/cdp_client.egg-info/top_level.txt +0 -0
- {cdp-client-2.0.3 → cdp-client-2.0.5}/setup.cfg +0 -0
|
@@ -253,6 +253,11 @@ class Node:
|
|
|
253
253
|
def _send_value_request(self):
|
|
254
254
|
max_fs = max(self._value_subscriptions, key=lambda e: e[1])[1]
|
|
255
255
|
max_sample_rate = max(self._value_subscriptions, key=lambda e: e[2])[2]
|
|
256
|
+
#by studio api protocol 0 is the highest sample rate (all samples), so override maxSampleRate if 0 is found
|
|
257
|
+
for s in self._value_subscriptions:
|
|
258
|
+
if s[2] == 0:
|
|
259
|
+
max_sample_rate = 0
|
|
260
|
+
break
|
|
256
261
|
self._connection.send_value_request(self._id(), max_fs, max_sample_rate)
|
|
257
262
|
|
|
258
263
|
def _update_structure(self, structure):
|
|
@@ -690,7 +695,8 @@ class Connection:
|
|
|
690
695
|
value = proto.ValueRequest()
|
|
691
696
|
value.node_id = node_id
|
|
692
697
|
value.fs = fs
|
|
693
|
-
|
|
698
|
+
if sample_rate is not 0:
|
|
699
|
+
value.sample_rate = sample_rate
|
|
694
700
|
if stop:
|
|
695
701
|
value.stop = stop
|
|
696
702
|
data.getter_request.extend([value])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|