genie-python 15.1.0__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.
Files changed (45) hide show
  1. genie_python/.pylintrc +539 -0
  2. genie_python/__init__.py +1 -0
  3. genie_python/_version.py +16 -0
  4. genie_python/block_names.py +123 -0
  5. genie_python/channel_access_exceptions.py +45 -0
  6. genie_python/genie.py +2462 -0
  7. genie_python/genie_advanced.py +418 -0
  8. genie_python/genie_alerts.py +195 -0
  9. genie_python/genie_api_setup.py +451 -0
  10. genie_python/genie_blockserver.py +64 -0
  11. genie_python/genie_cachannel_wrapper.py +551 -0
  12. genie_python/genie_change_cache.py +151 -0
  13. genie_python/genie_dae.py +2219 -0
  14. genie_python/genie_epics_api.py +906 -0
  15. genie_python/genie_experimental_data.py +186 -0
  16. genie_python/genie_logging.py +200 -0
  17. genie_python/genie_p4p_wrapper.py +203 -0
  18. genie_python/genie_plot.py +77 -0
  19. genie_python/genie_pre_post_cmd_manager.py +21 -0
  20. genie_python/genie_pv_connection_protocol.py +36 -0
  21. genie_python/genie_script_checker.py +507 -0
  22. genie_python/genie_script_generator.py +212 -0
  23. genie_python/genie_simulate.py +69 -0
  24. genie_python/genie_simulate_impl.py +1265 -0
  25. genie_python/genie_startup.py +29 -0
  26. genie_python/genie_toggle_settings.py +58 -0
  27. genie_python/genie_wait_for_move.py +154 -0
  28. genie_python/genie_waitfor.py +576 -0
  29. genie_python/matplotlib_backend/__init__.py +0 -0
  30. genie_python/matplotlib_backend/ibex_websocket_backend.py +366 -0
  31. genie_python/mysql_abstraction_layer.py +272 -0
  32. genie_python/scanning_instrument_pylint_plugin.py +31 -0
  33. genie_python/testing_utils/__init__.py +4 -0
  34. genie_python/testing_utils/script_checker.py +63 -0
  35. genie_python/typings/CaChannel/CaChannel.pyi +893 -0
  36. genie_python/typings/CaChannel/__init__.pyi +9 -0
  37. genie_python/typings/CaChannel/_version.pyi +6 -0
  38. genie_python/typings/CaChannel/ca.pyi +31 -0
  39. genie_python/utilities.py +406 -0
  40. genie_python/version.py +6 -0
  41. genie_python-15.1.0.dist-info/LICENSE +28 -0
  42. genie_python-15.1.0.dist-info/METADATA +84 -0
  43. genie_python-15.1.0.dist-info/RECORD +45 -0
  44. genie_python-15.1.0.dist-info/WHEEL +5 -0
  45. genie_python-15.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,45 @@
1
+ """
2
+ Useful and slightly more explit exceptions that can be thrown. In general catch the super class of these.
3
+ """
4
+
5
+
6
+ class UnableToConnectToPVException(IOError):
7
+ """
8
+ The system is unable to connect to a PV for some reason.
9
+ """
10
+
11
+ def __init__(self, pv_name, err):
12
+ super(UnableToConnectToPVException, self).__init__(
13
+ "Unable to connect to PV {0}: {1}".format(pv_name, err)
14
+ )
15
+
16
+
17
+ class InvalidEnumStringException(KeyError):
18
+ """
19
+ The enum string that is trying to be set is not listed in the pv.
20
+ """
21
+
22
+ def __init__(self, pv_name, valid_states):
23
+ super(InvalidEnumStringException, self).__init__(
24
+ "Invalid string value entered for {}. Valid strings are {}".format(
25
+ pv_name, valid_states
26
+ )
27
+ )
28
+
29
+
30
+ class ReadAccessException(IOError):
31
+ """
32
+ PV exists but its value is unavailable to read.
33
+ """
34
+
35
+ def __init__(self, pv_name):
36
+ super(ReadAccessException, self).__init__("Read access denied for PV {}".format(pv_name))
37
+
38
+
39
+ class WriteAccessException(IOError):
40
+ """
41
+ PV was written to but does not allow writes.
42
+ """
43
+
44
+ def __init__(self, pv_name):
45
+ super(WriteAccessException, self).__init__("Write access denied for PV {}".format(pv_name))