cdp-client 2.0.4__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.
Files changed (22) hide show
  1. {cdp-client-2.0.4/cdp_client.egg-info → cdp-client-2.0.5}/PKG-INFO +1 -1
  2. {cdp-client-2.0.4 → cdp-client-2.0.5}/cdp_client/cdp.py +5 -0
  3. {cdp-client-2.0.4 → cdp-client-2.0.5/cdp_client.egg-info}/PKG-INFO +1 -1
  4. {cdp-client-2.0.4 → cdp-client-2.0.5}/setup.py +1 -1
  5. {cdp-client-2.0.4 → cdp-client-2.0.5}/LICENSE.txt +0 -0
  6. {cdp-client-2.0.4 → cdp-client-2.0.5}/MANIFEST.in +0 -0
  7. {cdp-client-2.0.4 → cdp-client-2.0.5}/README.rst +0 -0
  8. {cdp-client-2.0.4 → cdp-client-2.0.5}/cdp_client/__init__.py +0 -0
  9. {cdp-client-2.0.4 → cdp-client-2.0.5}/cdp_client/cdp_pb2.py +0 -0
  10. {cdp-client-2.0.4 → cdp-client-2.0.5}/cdp_client/tests/__init__.py +0 -0
  11. {cdp-client-2.0.4 → cdp-client-2.0.5}/cdp_client/tests/fake_data.py +0 -0
  12. {cdp-client-2.0.4 → cdp-client-2.0.5}/cdp_client/tests/test_client.py +0 -0
  13. {cdp-client-2.0.4 → cdp-client-2.0.5}/cdp_client/tests/test_connection.py +0 -0
  14. {cdp-client-2.0.4 → cdp-client-2.0.5}/cdp_client/tests/test_main.py +0 -0
  15. {cdp-client-2.0.4 → cdp-client-2.0.5}/cdp_client/tests/test_node.py +0 -0
  16. {cdp-client-2.0.4 → cdp-client-2.0.5}/cdp_client/tests/test_nodetree.py +0 -0
  17. {cdp-client-2.0.4 → cdp-client-2.0.5}/cdp_client/tests/test_requests.py +0 -0
  18. {cdp-client-2.0.4 → cdp-client-2.0.5}/cdp_client.egg-info/SOURCES.txt +0 -0
  19. {cdp-client-2.0.4 → cdp-client-2.0.5}/cdp_client.egg-info/dependency_links.txt +0 -0
  20. {cdp-client-2.0.4 → cdp-client-2.0.5}/cdp_client.egg-info/requires.txt +0 -0
  21. {cdp-client-2.0.4 → cdp-client-2.0.5}/cdp_client.egg-info/top_level.txt +0 -0
  22. {cdp-client-2.0.4 → cdp-client-2.0.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: cdp-client
3
- Version: 2.0.4
3
+ Version: 2.0.5
4
4
  Summary: Provides an API that allows to interact with CDP applications
5
5
  Home-page: https://github.com/CDPTechnologies/PythonCDPClient
6
6
  Author: CDP Technologies AS
@@ -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):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: cdp-client
3
- Version: 2.0.4
3
+ Version: 2.0.5
4
4
  Summary: Provides an API that allows to interact with CDP applications
5
5
  Home-page: https://github.com/CDPTechnologies/PythonCDPClient
6
6
  Author: CDP Technologies AS
@@ -10,7 +10,7 @@ def readme():
10
10
 
11
11
  setup(
12
12
  name='cdp-client',
13
- version='2.0.4',
13
+ version='2.0.5',
14
14
  packages=find_packages(),
15
15
  install_requires=[
16
16
  'promise==2.2.1',
File without changes
File without changes
File without changes
File without changes