karabo.native 2.21.3__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 (172) hide show
  1. karabo_native-2.21.3/LICENSE.md +355 -0
  2. karabo_native-2.21.3/PKG-INFO +46 -0
  3. karabo_native-2.21.3/README.md +20 -0
  4. karabo_native-2.21.3/pyproject.toml +87 -0
  5. karabo_native-2.21.3/setup.cfg +4 -0
  6. karabo_native-2.21.3/src/karabo/__init__.py +1 -0
  7. karabo_native-2.21.3/src/karabo/_version.py +1 -0
  8. karabo_native-2.21.3/src/karabo/common/__init__.py +15 -0
  9. karabo_native-2.21.3/src/karabo/common/alarm_conditions.py +120 -0
  10. karabo_native-2.21.3/src/karabo/common/api.py +73 -0
  11. karabo_native-2.21.3/src/karabo/common/const.py +374 -0
  12. karabo_native-2.21.3/src/karabo/common/decorators.py +95 -0
  13. karabo_native-2.21.3/src/karabo/common/display_types.py +31 -0
  14. karabo_native-2.21.3/src/karabo/common/enums.py +53 -0
  15. karabo_native-2.21.3/src/karabo/common/module.py +37 -0
  16. karabo_native-2.21.3/src/karabo/common/packaging/__init__.py +15 -0
  17. karabo_native-2.21.3/src/karabo/common/packaging/tests/__init__.py +15 -0
  18. karabo_native-2.21.3/src/karabo/common/packaging/tests/test_utils.py +33 -0
  19. karabo_native-2.21.3/src/karabo/common/packaging/utils.py +48 -0
  20. karabo_native-2.21.3/src/karabo/common/project/__init__.py +15 -0
  21. karabo_native-2.21.3/src/karabo/common/project/api.py +32 -0
  22. karabo_native-2.21.3/src/karabo/common/project/bases.py +66 -0
  23. karabo_native-2.21.3/src/karabo/common/project/cache.py +145 -0
  24. karabo_native-2.21.3/src/karabo/common/project/const.py +27 -0
  25. karabo_native-2.21.3/src/karabo/common/project/device.py +185 -0
  26. karabo_native-2.21.3/src/karabo/common/project/device_config.py +35 -0
  27. karabo_native-2.21.3/src/karabo/common/project/lazy.py +74 -0
  28. karabo_native-2.21.3/src/karabo/common/project/macro.py +64 -0
  29. karabo_native-2.21.3/src/karabo/common/project/model.py +42 -0
  30. karabo_native-2.21.3/src/karabo/common/project/server.py +110 -0
  31. karabo_native-2.21.3/src/karabo/common/project/tests/__init__.py +15 -0
  32. karabo_native-2.21.3/src/karabo/common/project/tests/test_base.py +47 -0
  33. karabo_native-2.21.3/src/karabo/common/project/tests/test_cache.py +31 -0
  34. karabo_native-2.21.3/src/karabo/common/project/tests/test_device.py +155 -0
  35. karabo_native-2.21.3/src/karabo/common/project/tests/test_macro.py +27 -0
  36. karabo_native-2.21.3/src/karabo/common/project/tests/test_model.py +35 -0
  37. karabo_native-2.21.3/src/karabo/common/project/tests/test_server.py +234 -0
  38. karabo_native-2.21.3/src/karabo/common/project/tests/test_utils.py +246 -0
  39. karabo_native-2.21.3/src/karabo/common/project/utils.py +220 -0
  40. karabo_native-2.21.3/src/karabo/common/sanity_check.py +200 -0
  41. karabo_native-2.21.3/src/karabo/common/savable.py +177 -0
  42. karabo_native-2.21.3/src/karabo/common/scenemodel/__init__.py +15 -0
  43. karabo_native-2.21.3/src/karabo/common/scenemodel/api.py +78 -0
  44. karabo_native-2.21.3/src/karabo/common/scenemodel/bases.py +136 -0
  45. karabo_native-2.21.3/src/karabo/common/scenemodel/const.py +101 -0
  46. karabo_native-2.21.3/src/karabo/common/scenemodel/exceptions.py +21 -0
  47. karabo_native-2.21.3/src/karabo/common/scenemodel/generic_scenes.py +198 -0
  48. karabo_native-2.21.3/src/karabo/common/scenemodel/io_utils.py +161 -0
  49. karabo_native-2.21.3/src/karabo/common/scenemodel/layouts.py +216 -0
  50. karabo_native-2.21.3/src/karabo/common/scenemodel/model.py +189 -0
  51. karabo_native-2.21.3/src/karabo/common/scenemodel/modelio.py +57 -0
  52. karabo_native-2.21.3/src/karabo/common/scenemodel/registry.py +180 -0
  53. karabo_native-2.21.3/src/karabo/common/scenemodel/shapes.py +312 -0
  54. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/__init__.py +15 -0
  55. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/data/all.svg +234 -0
  56. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/data/all2.svg +1 -0
  57. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/data/inkscape/all.svg +725 -0
  58. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/data/inkscape/drawing.svg +234 -0
  59. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/data/inkscape/funny_mix.svg +157 -0
  60. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/data/inkscape/shapes.svg +103 -0
  61. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/data/legacy/icon-widgets.svg +1 -0
  62. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/data/legacy/icon_data/flag.svg +32 -0
  63. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/data/version_one_0.svg +76 -0
  64. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/data/version_one_1.svg +62 -0
  65. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/data/version_one_2.svg +42 -0
  66. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/data/version_one_3.svg +12 -0
  67. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/data/version_one_4.svg +22 -0
  68. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/data/version_one_5.svg +18 -0
  69. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/test_data_model_structure.py +95 -0
  70. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/test_graph_images.py +105 -0
  71. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/test_graph_plots.py +170 -0
  72. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/test_io.py +370 -0
  73. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/test_registry.py +80 -0
  74. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/test_shapes.py +193 -0
  75. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/test_unknown_widget_model.py +56 -0
  76. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/test_widgets_complex.py +194 -0
  77. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/test_widgets_icon.py +120 -0
  78. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/test_widgets_image.py +72 -0
  79. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/test_widgets_links.py +98 -0
  80. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/test_widgets_plot.py +82 -0
  81. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/test_widgets_simple.py +310 -0
  82. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/test_widgets_statefulicon.py +31 -0
  83. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/test_widgets_tools.py +27 -0
  84. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/test_widgets_vacuum.py +30 -0
  85. karabo_native-2.21.3/src/karabo/common/scenemodel/tests/utils.py +57 -0
  86. karabo_native-2.21.3/src/karabo/common/scenemodel/widgets/__init__.py +15 -0
  87. karabo_native-2.21.3/src/karabo/common/scenemodel/widgets/complex.py +394 -0
  88. karabo_native-2.21.3/src/karabo/common/scenemodel/widgets/graph_image.py +213 -0
  89. karabo_native-2.21.3/src/karabo/common/scenemodel/widgets/graph_plots.py +451 -0
  90. karabo_native-2.21.3/src/karabo/common/scenemodel/widgets/graph_utils.py +304 -0
  91. karabo_native-2.21.3/src/karabo/common/scenemodel/widgets/icon.py +232 -0
  92. karabo_native-2.21.3/src/karabo/common/scenemodel/widgets/links.py +134 -0
  93. karabo_native-2.21.3/src/karabo/common/scenemodel/widgets/plot.py +61 -0
  94. karabo_native-2.21.3/src/karabo/common/scenemodel/widgets/simple.py +589 -0
  95. karabo_native-2.21.3/src/karabo/common/scenemodel/widgets/statefulicon.py +51 -0
  96. karabo_native-2.21.3/src/karabo/common/scenemodel/widgets/tools.py +91 -0
  97. karabo_native-2.21.3/src/karabo/common/scenemodel/widgets/vacuum.py +79 -0
  98. karabo_native-2.21.3/src/karabo/common/services.py +28 -0
  99. karabo_native-2.21.3/src/karabo/common/states.py +310 -0
  100. karabo_native-2.21.3/src/karabo/common/tests/__init__.py +15 -0
  101. karabo_native-2.21.3/src/karabo/common/tests/test_alarm_condition.py +52 -0
  102. karabo_native-2.21.3/src/karabo/common/tests/test_const.py +160 -0
  103. karabo_native-2.21.3/src/karabo/common/tests/test_decorators.py +69 -0
  104. karabo_native-2.21.3/src/karabo/common/tests/test_macro_sanity_check.py +258 -0
  105. karabo_native-2.21.3/src/karabo/common/tests/test_module.py +42 -0
  106. karabo_native-2.21.3/src/karabo/common/tests/test_savable.py +137 -0
  107. karabo_native-2.21.3/src/karabo/common/tests/test_services.py +20 -0
  108. karabo_native-2.21.3/src/karabo/common/tests/test_states.py +239 -0
  109. karabo_native-2.21.3/src/karabo/common/tests/test_traits.py +59 -0
  110. karabo_native-2.21.3/src/karabo/common/tests/test_util.py +36 -0
  111. karabo_native-2.21.3/src/karabo/common/utils.py +107 -0
  112. karabo_native-2.21.3/src/karabo/native/__init__.py +25 -0
  113. karabo_native-2.21.3/src/karabo/native/data/__init__.py +38 -0
  114. karabo_native-2.21.3/src/karabo/native/data/bin_reader.py +201 -0
  115. karabo_native-2.21.3/src/karabo/native/data/bin_writer.py +171 -0
  116. karabo_native-2.21.3/src/karabo/native/data/compare.py +120 -0
  117. karabo_native-2.21.3/src/karabo/native/data/enums.py +283 -0
  118. karabo_native-2.21.3/src/karabo/native/data/hash.py +745 -0
  119. karabo_native-2.21.3/src/karabo/native/data/str_converter.py +247 -0
  120. karabo_native-2.21.3/src/karabo/native/data/tests/__init__.py +15 -0
  121. karabo_native-2.21.3/src/karabo/native/data/tests/test_compare.py +120 -0
  122. karabo_native-2.21.3/src/karabo/native/data/tests/test_converters.py +161 -0
  123. karabo_native-2.21.3/src/karabo/native/data/tests/test_hash.py +643 -0
  124. karabo_native-2.21.3/src/karabo/native/data/tests/test_schema.py +167 -0
  125. karabo_native-2.21.3/src/karabo/native/data/tests/test_serializers.py +326 -0
  126. karabo_native-2.21.3/src/karabo/native/data/tests/test_timestamp.py +123 -0
  127. karabo_native-2.21.3/src/karabo/native/data/tests/test_utils.py +284 -0
  128. karabo_native-2.21.3/src/karabo/native/data/timestamp.py +178 -0
  129. karabo_native-2.21.3/src/karabo/native/data/typenums.py +98 -0
  130. karabo_native-2.21.3/src/karabo/native/data/utils.py +236 -0
  131. karabo_native-2.21.3/src/karabo/native/data/xml_reader.py +284 -0
  132. karabo_native-2.21.3/src/karabo/native/data/xml_writer.py +164 -0
  133. karabo_native-2.21.3/src/karabo/native/exceptions.py +27 -0
  134. karabo_native-2.21.3/src/karabo/native/project/__init__.py +20 -0
  135. karabo_native-2.21.3/src/karabo/native/project/api.py +19 -0
  136. karabo_native-2.21.3/src/karabo/native/project/convert.py +98 -0
  137. karabo_native-2.21.3/src/karabo/native/project/io.py +323 -0
  138. karabo_native-2.21.3/src/karabo/native/project/old.py +375 -0
  139. karabo_native-2.21.3/src/karabo/native/project/tests/__init__.py +15 -0
  140. karabo_native-2.21.3/src/karabo/native/project/tests/test_io.py +270 -0
  141. karabo_native-2.21.3/src/karabo/native/schema/__init__.py +32 -0
  142. karabo_native-2.21.3/src/karabo/native/schema/basetypes.py +911 -0
  143. karabo_native-2.21.3/src/karabo/native/schema/configurable.py +490 -0
  144. karabo_native-2.21.3/src/karabo/native/schema/descriptors.py +1361 -0
  145. karabo_native-2.21.3/src/karabo/native/schema/image_data.py +282 -0
  146. karabo_native-2.21.3/src/karabo/native/schema/jsonencoder.py +54 -0
  147. karabo_native-2.21.3/src/karabo/native/schema/ndarray.py +162 -0
  148. karabo_native-2.21.3/src/karabo/native/schema/tests/__init__.py +15 -0
  149. karabo_native-2.21.3/src/karabo/native/schema/tests/basetypes_test.py +820 -0
  150. karabo_native-2.21.3/src/karabo/native/schema/tests/cast_test.py +254 -0
  151. karabo_native-2.21.3/src/karabo/native/schema/tests/configurable_test.py +1826 -0
  152. karabo_native-2.21.3/src/karabo/native/schema/tests/descriptor_test.py +1321 -0
  153. karabo_native-2.21.3/src/karabo/native/schema/tests/json_test.py +57 -0
  154. karabo_native-2.21.3/src/karabo/native/schema/tests/ufunc_test.py +2106 -0
  155. karabo_native-2.21.3/src/karabo/native/schema/tests/utils.py +29 -0
  156. karabo_native-2.21.3/src/karabo/native/schema/tests/utils_test.py +270 -0
  157. karabo_native-2.21.3/src/karabo/native/schema/utils.py +217 -0
  158. karabo_native-2.21.3/src/karabo/native/tests/__init__.py +15 -0
  159. karabo_native-2.21.3/src/karabo/native/tests/time_mixin_test.py +89 -0
  160. karabo_native-2.21.3/src/karabo/native/tests/weak_test.py +58 -0
  161. karabo_native-2.21.3/src/karabo/native/time_mixin.py +109 -0
  162. karabo_native-2.21.3/src/karabo/native/weak.py +53 -0
  163. karabo_native-2.21.3/src/karabo/testing/__init__.py +15 -0
  164. karabo_native-2.21.3/src/karabo/testing/import_checker.py +91 -0
  165. karabo_native-2.21.3/src/karabo/testing/resources/reference.krb +0 -0
  166. karabo_native-2.21.3/src/karabo/testing/utils.py +127 -0
  167. karabo_native-2.21.3/src/karabo/version.py +1 -0
  168. karabo_native-2.21.3/src/karabo.native.egg-info/PKG-INFO +46 -0
  169. karabo_native-2.21.3/src/karabo.native.egg-info/SOURCES.txt +170 -0
  170. karabo_native-2.21.3/src/karabo.native.egg-info/dependency_links.txt +1 -0
  171. karabo_native-2.21.3/src/karabo.native.egg-info/requires.txt +7 -0
  172. karabo_native-2.21.3/src/karabo.native.egg-info/top_level.txt +1 -0
@@ -0,0 +1,355 @@
1
+ Mozilla Public License Version 2.0
2
+ ==================================
3
+
4
+ ### 1. Definitions
5
+
6
+ **1.1. “Contributor”**
7
+ means each individual or legal entity that creates, contributes to
8
+ the creation of, or owns Covered Software.
9
+
10
+ **1.2. “Contributor Version”**
11
+ means the combination of the Contributions of others (if any) used
12
+ by a Contributor and that particular Contributor's Contribution.
13
+
14
+ **1.3. “Contribution”**
15
+ means Covered Software of a particular Contributor.
16
+
17
+ **1.4. “Covered Software”**
18
+ means Source Code Form to which the initial Contributor has attached
19
+ the notice in Exhibit A, the Executable Form of such Source Code
20
+ Form, and Modifications of such Source Code Form, in each case
21
+ including portions thereof.
22
+
23
+ **1.5. “Incompatible With Secondary Licenses”**
24
+ means
25
+
26
+ * **(a)** that the initial Contributor has attached the notice described
27
+ in Exhibit B to the Covered Software; or
28
+ * **(b)** that the Covered Software was made available under the terms of
29
+ version 1.1 or earlier of the License, but not also under the
30
+ terms of a Secondary License.
31
+
32
+ **1.6. “Executable Form”**
33
+ means any form of the work other than Source Code Form.
34
+
35
+ **1.7. “Larger Work”**
36
+ means a work that combines Covered Software with other material, in
37
+ a separate file or files, that is not Covered Software.
38
+
39
+ **1.8. “License”**
40
+ means this document.
41
+
42
+ **1.9. “Licensable”**
43
+ means having the right to grant, to the maximum extent possible,
44
+ whether at the time of the initial grant or subsequently, any and
45
+ all of the rights conveyed by this License.
46
+
47
+ **1.10. “Modifications”**
48
+ means any of the following:
49
+
50
+ * **(a)** any file in Source Code Form that results from an addition to,
51
+ deletion from, or modification of the contents of Covered
52
+ Software; or
53
+ * **(b)** any new file in Source Code Form that contains any Covered
54
+ Software.
55
+
56
+ **1.11. “Patent Claims” of a Contributor**
57
+ means any patent claim(s), including without limitation, method,
58
+ process, and apparatus claims, in any patent Licensable by such
59
+ Contributor that would be infringed, but for the grant of the
60
+ License, by the making, using, selling, offering for sale, having
61
+ made, import, or transfer of either its Contributions or its
62
+ Contributor Version.
63
+
64
+ **1.12. “Secondary License”**
65
+ means either the GNU General Public License, Version 2.0, the GNU
66
+ Lesser General Public License, Version 2.1, the GNU Affero General
67
+ Public License, Version 3.0, or any later versions of those
68
+ licenses.
69
+
70
+ **1.13. “Source Code Form”**
71
+ means the form of the work preferred for making modifications.
72
+
73
+ **1.14. “You” (or “Your”)**
74
+ means an individual or a legal entity exercising rights under this
75
+ License. For legal entities, “You” includes any entity that
76
+ controls, is controlled by, or is under common control with You. For
77
+ purposes of this definition, “control” means **(a)** the power, direct
78
+ or indirect, to cause the direction or management of such entity,
79
+ whether by contract or otherwise, or **(b)** ownership of more than
80
+ fifty percent (50%) of the outstanding shares or beneficial
81
+ ownership of such entity.
82
+
83
+
84
+ ### 2. License Grants and Conditions
85
+
86
+ #### 2.1. Grants
87
+
88
+ Each Contributor hereby grants You a world-wide, royalty-free,
89
+ non-exclusive license:
90
+
91
+ * **(a)** under intellectual property rights (other than patent or trademark)
92
+ Licensable by such Contributor to use, reproduce, make available,
93
+ modify, display, perform, distribute, and otherwise exploit its
94
+ Contributions, either on an unmodified basis, with Modifications, or
95
+ as part of a Larger Work; and
96
+ * **(b)** under Patent Claims of such Contributor to make, use, sell, offer
97
+ for sale, have made, import, and otherwise transfer either its
98
+ Contributions or its Contributor Version.
99
+
100
+ #### 2.2. Effective Date
101
+
102
+ The licenses granted in Section 2.1 with respect to any Contribution
103
+ become effective for each Contribution on the date the Contributor first
104
+ distributes such Contribution.
105
+
106
+ #### 2.3. Limitations on Grant Scope
107
+
108
+ The licenses granted in this Section 2 are the only rights granted under
109
+ this License. No additional rights or licenses will be implied from the
110
+ distribution or licensing of Covered Software under this License.
111
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
112
+ Contributor:
113
+
114
+ * **(a)** for any code that a Contributor has removed from Covered Software;
115
+ or
116
+ * **(b)** for infringements caused by: **(i)** Your and any other third party's
117
+ modifications of Covered Software, or **(ii)** the combination of its
118
+ Contributions with other software (except as part of its Contributor
119
+ Version); or
120
+ * **(c)** under Patent Claims infringed by Covered Software in the absence of
121
+ its Contributions.
122
+
123
+ This License does not grant any rights in the trademarks, service marks,
124
+ or logos of any Contributor (except as may be necessary to comply with
125
+ the notice requirements in Section 3.4).
126
+
127
+ #### 2.4. Subsequent Licenses
128
+
129
+ No Contributor makes additional grants as a result of Your choice to
130
+ distribute the Covered Software under a subsequent version of this
131
+ License (see Section 10.2) or under the terms of a Secondary License (if
132
+ permitted under the terms of Section 3.3).
133
+
134
+ #### 2.5. Representation
135
+
136
+ Each Contributor represents that the Contributor believes its
137
+ Contributions are its original creation(s) or it has sufficient rights
138
+ to grant the rights to its Contributions conveyed by this License.
139
+
140
+ #### 2.6. Fair Use
141
+
142
+ This License is not intended to limit any rights You have under
143
+ applicable copyright doctrines of fair use, fair dealing, or other
144
+ equivalents.
145
+
146
+ #### 2.7. Conditions
147
+
148
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
149
+ in Section 2.1.
150
+
151
+
152
+ ### 3. Responsibilities
153
+
154
+ #### 3.1. Distribution of Source Form
155
+
156
+ All distribution of Covered Software in Source Code Form, including any
157
+ Modifications that You create or to which You contribute, must be under
158
+ the terms of this License. You must inform recipients that the Source
159
+ Code Form of the Covered Software is governed by the terms of this
160
+ License, and how they can obtain a copy of this License. You may not
161
+ attempt to alter or restrict the recipients' rights in the Source Code
162
+ Form.
163
+
164
+ #### 3.2. Distribution of Executable Form
165
+
166
+ If You distribute Covered Software in Executable Form then:
167
+
168
+ * **(a)** such Covered Software must also be made available in Source Code
169
+ Form, as described in Section 3.1, and You must inform recipients of
170
+ the Executable Form how they can obtain a copy of such Source Code
171
+ Form by reasonable means in a timely manner, at a charge no more
172
+ than the cost of distribution to the recipient; and
173
+
174
+ * **(b)** You may distribute such Executable Form under the terms of this
175
+ License, or sublicense it under different terms, provided that the
176
+ license for the Executable Form does not attempt to limit or alter
177
+ the recipients' rights in the Source Code Form under this License.
178
+
179
+ #### 3.3. Distribution of a Larger Work
180
+
181
+ You may create and distribute a Larger Work under terms of Your choice,
182
+ provided that You also comply with the requirements of this License for
183
+ the Covered Software. If the Larger Work is a combination of Covered
184
+ Software with a work governed by one or more Secondary Licenses, and the
185
+ Covered Software is not Incompatible With Secondary Licenses, this
186
+ License permits You to additionally distribute such Covered Software
187
+ under the terms of such Secondary License(s), so that the recipient of
188
+ the Larger Work may, at their option, further distribute the Covered
189
+ Software under the terms of either this License or such Secondary
190
+ License(s).
191
+
192
+ #### 3.4. Notices
193
+
194
+ You may not remove or alter the substance of any license notices
195
+ (including copyright notices, patent notices, disclaimers of warranty,
196
+ or limitations of liability) contained within the Source Code Form of
197
+ the Covered Software, except that You may alter any license notices to
198
+ the extent required to remedy known factual inaccuracies.
199
+
200
+ #### 3.5. Application of Additional Terms
201
+
202
+ You may choose to offer, and to charge a fee for, warranty, support,
203
+ indemnity or liability obligations to one or more recipients of Covered
204
+ Software. However, You may do so only on Your own behalf, and not on
205
+ behalf of any Contributor. You must make it absolutely clear that any
206
+ such warranty, support, indemnity, or liability obligation is offered by
207
+ You alone, and You hereby agree to indemnify every Contributor for any
208
+ liability incurred by such Contributor as a result of warranty, support,
209
+ indemnity or liability terms You offer. You may include additional
210
+ disclaimers of warranty and limitations of liability specific to any
211
+ jurisdiction.
212
+
213
+
214
+ ### 4. Inability to Comply Due to Statute or Regulation
215
+
216
+ If it is impossible for You to comply with any of the terms of this
217
+ License with respect to some or all of the Covered Software due to
218
+ statute, judicial order, or regulation then You must: **(a)** comply with
219
+ the terms of this License to the maximum extent possible; and **(b)**
220
+ describe the limitations and the code they affect. Such description must
221
+ be placed in a text file included with all distributions of the Covered
222
+ Software under this License. Except to the extent prohibited by statute
223
+ or regulation, such description must be sufficiently detailed for a
224
+ recipient of ordinary skill to be able to understand it.
225
+
226
+
227
+ ### 5. Termination
228
+
229
+ **5.1.** The rights granted under this License will terminate automatically
230
+ if You fail to comply with any of its terms. However, if You become
231
+ compliant, then the rights granted under this License from a particular
232
+ Contributor are reinstated **(a)** provisionally, unless and until such
233
+ Contributor explicitly and finally terminates Your grants, and **(b)** on an
234
+ ongoing basis, if such Contributor fails to notify You of the
235
+ non-compliance by some reasonable means prior to 60 days after You have
236
+ come back into compliance. Moreover, Your grants from a particular
237
+ Contributor are reinstated on an ongoing basis if such Contributor
238
+ notifies You of the non-compliance by some reasonable means, this is the
239
+ first time You have received notice of non-compliance with this License
240
+ from such Contributor, and You become compliant prior to 30 days after
241
+ Your receipt of the notice.
242
+
243
+ **5.2.** If You initiate litigation against any entity by asserting a patent
244
+ infringement claim (excluding declaratory judgment actions,
245
+ counter-claims, and cross-claims) alleging that a Contributor Version
246
+ directly or indirectly infringes any patent, then the rights granted to
247
+ You by any and all Contributors for the Covered Software under Section
248
+ 2.1 of this License shall terminate.
249
+
250
+ **5.3.** In the event of termination under Sections 5.1 or 5.2 above, all
251
+ end user license agreements (excluding distributors and resellers) which
252
+ have been validly granted by You or Your distributors under this License
253
+ prior to termination shall survive termination.
254
+
255
+
256
+ ### 6. Disclaimer of Warranty
257
+
258
+ > Covered Software is provided under this License on an “as is”
259
+ > basis, without warranty of any kind, either expressed, implied, or
260
+ > statutory, including, without limitation, warranties that the
261
+ > Covered Software is free of defects, merchantable, fit for a
262
+ > particular purpose or non-infringing. The entire risk as to the
263
+ > quality and performance of the Covered Software is with You.
264
+ > Should any Covered Software prove defective in any respect, You
265
+ > (not any Contributor) assume the cost of any necessary servicing,
266
+ > repair, or correction. This disclaimer of warranty constitutes an
267
+ > essential part of this License. No use of any Covered Software is
268
+ > authorized under this License except under this disclaimer.
269
+
270
+ ### 7. Limitation of Liability
271
+
272
+ > Under no circumstances and under no legal theory, whether tort
273
+ > (including negligence), contract, or otherwise, shall any
274
+ > Contributor, or anyone who distributes Covered Software as
275
+ > permitted above, be liable to You for any direct, indirect,
276
+ > special, incidental, or consequential damages of any character
277
+ > including, without limitation, damages for lost profits, loss of
278
+ > goodwill, work stoppage, computer failure or malfunction, or any
279
+ > and all other commercial damages or losses, even if such party
280
+ > shall have been informed of the possibility of such damages. This
281
+ > limitation of liability shall not apply to liability for death or
282
+ > personal injury resulting from such party's negligence to the
283
+ > extent applicable law prohibits such limitation. Some
284
+ > jurisdictions do not allow the exclusion or limitation of
285
+ > incidental or consequential damages, so this exclusion and
286
+ > limitation may not apply to You.
287
+
288
+
289
+ ### 8. Litigation
290
+
291
+ Any litigation relating to this License may be brought only in the
292
+ courts of a jurisdiction where the defendant maintains its principal
293
+ place of business and such litigation shall be governed by laws of that
294
+ jurisdiction, without reference to its conflict-of-law provisions.
295
+ Nothing in this Section shall prevent a party's ability to bring
296
+ cross-claims or counter-claims.
297
+
298
+
299
+ ### 9. Miscellaneous
300
+
301
+ This License represents the complete agreement concerning the subject
302
+ matter hereof. If any provision of this License is held to be
303
+ unenforceable, such provision shall be reformed only to the extent
304
+ necessary to make it enforceable. Any law or regulation which provides
305
+ that the language of a contract shall be construed against the drafter
306
+ shall not be used to construe this License against a Contributor.
307
+
308
+
309
+ ### 10. Versions of the License
310
+
311
+ #### 10.1. New Versions
312
+
313
+ Mozilla Foundation is the license steward. Except as provided in Section
314
+ 10.3, no one other than the license steward has the right to modify or
315
+ publish new versions of this License. Each version will be given a
316
+ distinguishing version number.
317
+
318
+ #### 10.2. Effect of New Versions
319
+
320
+ You may distribute the Covered Software under the terms of the version
321
+ of the License under which You originally received the Covered Software,
322
+ or under the terms of any subsequent version published by the license
323
+ steward.
324
+
325
+ #### 10.3. Modified Versions
326
+
327
+ If you create software not governed by this License, and you want to
328
+ create a new license for such software, you may create and use a
329
+ modified version of this License if you rename the license and remove
330
+ any references to the name of the license steward (except to note that
331
+ such modified license differs from this License).
332
+
333
+ #### 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses
334
+
335
+ If You choose to distribute Source Code Form that is Incompatible With
336
+ Secondary Licenses under the terms of this version of the License, the
337
+ notice described in Exhibit B of this License must be attached.
338
+
339
+ ## Exhibit A - Source Code Form License Notice
340
+
341
+ This Source Code Form is subject to the terms of the Mozilla Public
342
+ License, v. 2.0. If a copy of the MPL was not distributed with this
343
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
344
+
345
+ If it is not possible or desirable to put the notice in a particular
346
+ file, then You may include the notice in a location (such as a LICENSE
347
+ file in a relevant directory) where a recipient would be likely to look
348
+ for such a notice.
349
+
350
+ You may add additional accurate notices of copyright ownership.
351
+
352
+ ## Exhibit B - “Incompatible With Secondary Licenses” Notice
353
+
354
+ This Source Code Form is "Incompatible With Secondary Licenses", as
355
+ defined by the Mozilla Public License, v. 2.0.
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.4
2
+ Name: karabo.native
3
+ Version: 2.21.3
4
+ Summary: Karabo's native data Python types and models
5
+ Author-email: European XFEL GmbH <opensource@xfel.eu>
6
+ Maintainer-email: "S. Hauf" <steffen.hauf@xfel.eu>, "D. Goeries" <dennis.goeries@xfel.eu>
7
+ License-Expression: MPL-2.0
8
+ Project-URL: Homepage, https://github.com/European-XFEL/Karabo
9
+ Project-URL: Bug Reports, https://github.com/European-XFEL/Karabo/issues
10
+ Project-URL: Source, https://github.com/European-XFEL/Karabo
11
+ Keywords: Karabo,SCADA,async,control system
12
+ Classifier: Development Status :: 5 - Production/Stable
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Intended Audience :: Science/Research
15
+ Requires-Python: >=3.12
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE.md
18
+ Requires-Dist: lxml==5.3.2
19
+ Requires-Dist: numpy==2.1.3
20
+ Requires-Dist: pint>=0.24.4
21
+ Requires-Dist: pytest==8.3.3
22
+ Requires-Dist: python_dateutil==2.9.0.post0
23
+ Requires-Dist: tabulate==0.9.0
24
+ Requires-Dist: traits==6.4.3
25
+ Dynamic: license-file
26
+
27
+ # Karabo SCADA Framework - Karabo.Native
28
+ ![Karabo Badge](https://img.shields.io/badge/Karabo-Native-blue?style=social&logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABigAwAEAAAAAQAAABgAAAAAEQ8YrgAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRv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Z2JjQeQVaZ3%2BdxKtPzlIHP67CUUuSdgWsUkdHY%2BBE%2FxNpuzKb3HQOh80pyDqHSuEiRSaToZeOTbbVi5vA7Fk0px7OSHNKQFyaRCURAj4wF4ke%2BP0D%2FMFJ9dLx4ll9pvw1lUiK%2FOqkJfIIQP%2FnERViFDhaMpmLKJBnFLPPZ7jqG55TyKSidCpYrfd%2BQ9nP%2FzvrTZOBWixQomkx6j8qNMXLvJSjuyUVb0fNh7LX300DlIFpYR9Abm5789ivfe8qBQpmp35cFI8U%2FEIuj61zlEHj3Ah6daESWjePfURfX4xfuZKdVzhOr1a%2BDIsb6zcIp5v9Z0eDwetrt4weZ4PL4r1NNTqFHurC%2BQxuG%2FU%2FBjQulXytHddg3T161BWX09Yo96cea1A8iblAcmMAp%2FuVuZv2Sh6HS5wMgjQ26XY9ubDU80a7413jEehqHswUFP68CxLlPWS4qiND43o9ouz6rBpUPvJLrbung6rHmGNlzDX1utJXYEuryqmOVQVjQ8qTMaKaOSoyfqqmq%2Bu2FRxTCwliOkibC0azRLoLGlRfLMcsrHNtS%2FJqrxqnhgcA8RhPi0b63W2adP4JP4OJGKyxqF6JdB%2BGGnwjmd6vzGdTo9q%2FrsJPHMH7Y3NGjOG%2Fe2SPQy1VRJxiHSAmhW6znPw%2B3lL2zcSG8UYP3bf52SFsQdY7K8yd%2FZhajPl6mor1Pl4SDpuXVLnDJ7NnKzjX%2BcnZ%2F%2F0vOr5vixtonzTAPn8axTtPP0jqCp%2FB9b29QkBu%2Fa1QueuvHhs%2BXk5ZpYOPpjJZV%2BkvISybE4DKoSKMrN3bbn2cUnx13s3St5QqEU7acG97hpAb58%2Ft%2BVbm450EqV9R89YcOJj%2BY37DvV%2BsLB90%2B1tHfatUNNTU3cXgrvl8609bFn7t8fxThrSai%2FQAAAAABJRU5ErkJggg%3D%3D)
29
+ ![PyPI - Version](https://img.shields.io/pypi/v/karabo-native)
30
+ ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/karabo-native)
31
+ ![PyPI - License](https://img.shields.io/pypi/l/karabo-native)
32
+ ![PyPI - Wheel](https://img.shields.io/pypi/wheel/karabo-native)
33
+ ![GitHub language count](https://img.shields.io/github/languages/count/European-XFEL/Karabo)
34
+ ![GitHub top language](https://img.shields.io/github/languages/top/European-XFEL/Karabo)
35
+ ![GitHub contributors](https://img.shields.io/github/contributors/European-XFEL/Karabo)
36
+ ![GitHub commit activity](https://img.shields.io/github/commit-activity/m/European-XFEL/Karabo)
37
+ ![GitHub Repo stars](https://img.shields.io/github/stars/European-XFEL/Karabo)
38
+
39
+ The `karabo.native` package contains Karabo data structures common to
40
+ `karathon`, and the `karabogui`.
41
+
42
+ It is usually not installed stand-alone, but as a dependency of other
43
+ Karabo packages.
44
+
45
+ Please check https://pypi.org/project/Karabo/ for an overview of Karabo's components
46
+ and ways to install the full system.
@@ -0,0 +1,20 @@
1
+ # Karabo SCADA Framework - Karabo.Native
2
+ ![Karabo Badge](https://img.shields.io/badge/Karabo-Native-blue?style=social&logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABigAwAEAAAAAQAAABgAAAAAEQ8YrgAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDYuMC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXN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FnERViFDhaMpmLKJBnFLPPZ7jqG55TyKSidCpYrfd%2BQ9nP%2FzvrTZOBWixQomkx6j8qNMXLvJSjuyUVb0fNh7LX300DlIFpYR9Abm5789ivfe8qBQpmp35cFI8U%2FEIuj61zlEHj3Ah6daESWjePfURfX4xfuZKdVzhOr1a%2BDIsb6zcIp5v9Z0eDwetrt4weZ4PL4r1NNTqFHurC%2BQxuG%2FU%2FBjQulXytHddg3T161BWX09Yo96cea1A8iblAcmMAp%2FuVuZv2Sh6HS5wMgjQ26XY9ubDU80a7413jEehqHswUFP68CxLlPWS4qiND43o9ouz6rBpUPvJLrbung6rHmGNlzDX1utJXYEuryqmOVQVjQ8qTMaKaOSoyfqqmq%2Bu2FRxTCwliOkibC0azRLoLGlRfLMcsrHNtS%2FJqrxqnhgcA8RhPi0b63W2adP4JP4OJGKyxqF6JdB%2BGGnwjmd6vzGdTo9q%2FrsJPHMH7Y3NGjOG%2Fe2SPQy1VRJxiHSAmhW6znPw%2B3lL2zcSG8UYP3bf52SFsQdY7K8yd%2FZhajPl6mor1Pl4SDpuXVLnDJ7NnKzjX%2BcnZ%2F%2F0vOr5vixtonzTAPn8axTtPP0jqCp%2FB9b29QkBu%2Fa1QueuvHhs%2BXk5ZpYOPpjJZV%2BkvISybE4DKoSKMrN3bbn2cUnx13s3St5QqEU7acG97hpAb58%2Ft%2BVbm450EqV9R89YcOJj%2BY37DvV%2BsLB90%2B1tHfatUNNTU3cXgrvl8609bFn7t8fxThrSai%2FQAAAAABJRU5ErkJggg%3D%3D)
3
+ ![PyPI - Version](https://img.shields.io/pypi/v/karabo-native)
4
+ ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/karabo-native)
5
+ ![PyPI - License](https://img.shields.io/pypi/l/karabo-native)
6
+ ![PyPI - Wheel](https://img.shields.io/pypi/wheel/karabo-native)
7
+ ![GitHub language count](https://img.shields.io/github/languages/count/European-XFEL/Karabo)
8
+ ![GitHub top language](https://img.shields.io/github/languages/top/European-XFEL/Karabo)
9
+ ![GitHub contributors](https://img.shields.io/github/contributors/European-XFEL/Karabo)
10
+ ![GitHub commit activity](https://img.shields.io/github/commit-activity/m/European-XFEL/Karabo)
11
+ ![GitHub Repo stars](https://img.shields.io/github/stars/European-XFEL/Karabo)
12
+
13
+ The `karabo.native` package contains Karabo data structures common to
14
+ `karathon`, and the `karabogui`.
15
+
16
+ It is usually not installed stand-alone, but as a dependency of other
17
+ Karabo packages.
18
+
19
+ Please check https://pypi.org/project/Karabo/ for an overview of Karabo's components
20
+ and ways to install the full system.
@@ -0,0 +1,87 @@
1
+ [build-system]
2
+ # A list of packages that are needed to build your package:
3
+ requires = ["setuptools"] # REQUIRED if [build-system] table is used
4
+ # The name of the Python object that frontends will use to perform the build:
5
+ build-backend = "setuptools.build_meta" # If not defined, then legacy behavior can happen.
6
+
7
+
8
+ [project]
9
+ version = "2.21.3"
10
+ name = "karabo.native"
11
+ description = "Karabo's native data Python types and models"
12
+ readme = "README.md"
13
+ requires-python = ">=3.12"
14
+ license = "MPL-2.0"
15
+ keywords = ["Karabo", "SCADA", "async", "control system"]
16
+ authors = [{ name = "European XFEL GmbH", email = "opensource@xfel.eu" }]
17
+ maintainers = [
18
+ { name = "S. Hauf", email = "steffen.hauf@xfel.eu" },
19
+ { name = "D. Goeries", email = "dennis.goeries@xfel.eu" },
20
+ ]
21
+
22
+ # Classifiers help users find your project by categorizing it.
23
+ #
24
+ # For a list of valid classifiers, see https://pypi.org/classifiers/
25
+ classifiers = [
26
+ # How mature is this project? Common values are
27
+ # 3 - Alpha
28
+ # 4 - Beta
29
+ # 5 - Production/Stable
30
+ "Development Status :: 5 - Production/Stable",
31
+
32
+ # Indicate who your project is intended for
33
+ "Intended Audience :: Developers",
34
+ "Intended Audience :: Science/Research",
35
+ ]
36
+
37
+ # This field lists other packages that your project depends on to run.
38
+ # Any package you put here will be installed by pip when your project is
39
+ # installed, so they must be valid existing projects.
40
+ #
41
+ # For an analysis of this field vs pip's requirements files see:
42
+ # https://packaging.python.org/discussions/install-requires-vs-requirements/
43
+ dependencies = [
44
+ "lxml==5.3.2",
45
+ "numpy==2.1.3",
46
+ "pint>=0.24.4",
47
+ "pytest==8.3.3",
48
+ "python_dateutil==2.9.0.post0",
49
+ "tabulate==0.9.0",
50
+ "traits==6.4.3",
51
+ ]
52
+
53
+
54
+ [project.optional-dependencies]
55
+ # dev = ["check-manifest"]
56
+ # test = ["coverage"]
57
+
58
+ # List URLs that are relevant to your project
59
+ #
60
+ # This field corresponds to the "Project-URL" and "Home-Page" metadata fields:
61
+ # https://packaging.python.org/specifications/core-metadata/#project-url-multiple-use
62
+ # https://packaging.python.org/specifications/core-metadata/#home-page-optional
63
+ #
64
+ # Examples listed include a pattern for specifying where the package tracks
65
+ # issues, where the source is hosted, where to say thanks to the package
66
+ # maintainers, and where to support the project financially. The key is
67
+ # what's used to render the link text on PyPI.
68
+ [project.urls]
69
+ "Homepage" = "https://github.com/European-XFEL/Karabo"
70
+ "Bug Reports" = "https://github.com/European-XFEL/Karabo/issues"
71
+ #"Funding" = "https://donate.pypi.org"
72
+ # "Say Thanks!" = "mailto://opensource@xfel.eu"
73
+ "Source" = "https://github.com/European-XFEL/Karabo"
74
+
75
+ # The following would provide a command line executable called `sample`
76
+ # which executes the function `main` from this package when invoked.
77
+ [project.scripts]
78
+
79
+
80
+ # This is configuration specific to the `setuptools` build backend.
81
+ # If you are using a different build backend, you will need to change this.
82
+ [tool.setuptools]
83
+ # If there are data files included in your packages that need to be
84
+ # installed, specify them here.
85
+ [tool.setuptools.package-data]
86
+ "karabo.common.scenemodel.tests" = ["data/*.svg", "data/inkscape/*.svg", "data/legacy/*.svg", "data/legacy/icon_data/*.svg"]
87
+ "karabo.testing" = ["resources/*.*"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1 @@
1
+ __version__ = '2.21.3'
@@ -0,0 +1 @@
1
+ version = '2.21.3'
@@ -0,0 +1,15 @@
1
+ # This file is part of Karabo.
2
+ #
3
+ # http://www.karabo.eu
4
+ #
5
+ # Copyright (C) European XFEL GmbH Schenefeld. All rights reserved.
6
+ #
7
+ # Karabo is free software: you can redistribute it and/or modify it under
8
+ # the terms of the MPL-2 Mozilla Public License.
9
+ #
10
+ # You should have received a copy of the MPL-2 Public License along with
11
+ # Karabo. If not, see <https://www.mozilla.org/en-US/MPL/2.0/>.
12
+ #
13
+ # Karabo is distributed in the hope that it will be useful, but WITHOUT ANY
14
+ # WARRANTY; without even the implied warranty of MERCHANTABILITY or
15
+ # FITNESS FOR A PARTICULAR PURPOSE.
@@ -0,0 +1,120 @@
1
+ # This file is part of Karabo.
2
+ #
3
+ # http://www.karabo.eu
4
+ #
5
+ # Copyright (C) European XFEL GmbH Schenefeld. All rights reserved.
6
+ #
7
+ # Karabo is free software: you can redistribute it and/or modify it under
8
+ # the terms of the MPL-2 Mozilla Public License.
9
+ #
10
+ # You should have received a copy of the MPL-2 Public License along with
11
+ # Karabo. If not, see <https://www.mozilla.org/en-US/MPL/2.0/>.
12
+ #
13
+ # Karabo is distributed in the hope that it will be useful, but WITHOUT ANY
14
+ # WARRANTY; without even the implied warranty of MERCHANTABILITY or
15
+ # FITNESS FOR A PARTICULAR PURPOSE.
16
+ from enum import Enum
17
+ from functools import total_ordering
18
+
19
+
20
+ @total_ordering
21
+ class AlarmCondition(Enum):
22
+ """A class for unified alarm conditions.
23
+
24
+ Alarms are categorized by severity, which can either be none, warn, alarm
25
+ or interlock. Interlock is the most severe condition.
26
+ """
27
+
28
+ NONE = "none"
29
+ WARN = "warn"
30
+ WARN_LOW = "warnLow"
31
+ WARN_HIGH = "warnHigh"
32
+ WARN_VARIANCE_LOW = "warnVarianceLow"
33
+ WARN_VARIANCE_HIGH = "warnVarianceHigh"
34
+ ALARM = "alarm"
35
+ ALARM_LOW = "alarmLow"
36
+ ALARM_HIGH = "alarmHigh"
37
+ ALARM_VARIANCE_LOW = "alarmVarianceLow"
38
+ ALARM_VARIANCE_HIGH = "alarmVarianceHigh"
39
+ INTERLOCK = "interlock"
40
+
41
+ @staticmethod
42
+ def criticalityList():
43
+ """Return the severity list
44
+
45
+ severity increases from left to right
46
+ :return: an list with alarm severities
47
+ """
48
+ return [
49
+ AlarmCondition.NONE,
50
+ AlarmCondition.WARN,
51
+ AlarmCondition.ALARM,
52
+ AlarmCondition.INTERLOCK,
53
+ ]
54
+
55
+ def criticalityLevel(self):
56
+ """Return the severity level of this alarm condition"""
57
+ for p in AlarmCondition.criticalityList():
58
+ if p.value in self.value:
59
+ return p
60
+ return self
61
+
62
+ @staticmethod
63
+ def returnMostSignificant(conditionList):
64
+ """Returns the most severe/significant condition
65
+
66
+ Returns the most severe/significant condition in the given list of
67
+ conditions
68
+ :param conditionList: a list containing alarm conditions
69
+ :return: The most severe condition in the list
70
+ """
71
+ if len(conditionList) == 0:
72
+ return AlarmCondition.NONE
73
+ else:
74
+ s = conditionList[0]
75
+ for c in conditionList:
76
+ s = s.returnMoreSignificant(c)
77
+ return s.criticalityLevel()
78
+
79
+ def returnMoreSignificant(self, other):
80
+ """Return the more significant of this and the other condition
81
+
82
+ :param other: The condition to compare against
83
+ """
84
+ if self.criticalityList().index(
85
+ self.criticalityLevel()
86
+ ) > self.criticalityList().index(other.criticalityLevel()):
87
+ return self
88
+ else:
89
+ return other
90
+
91
+ @staticmethod
92
+ def fromString(name):
93
+ """Return an alarm condition from its stringified representation."""
94
+ return AlarmCondition(name)
95
+
96
+ def asString(self):
97
+ """Return the string representation of the alarm condition"""
98
+ return self.value
99
+
100
+ def asBaseString(self):
101
+ """Return the severity level, e.g. base of the alarmcondtions"""
102
+ return self.parent().value
103
+
104
+ def isSameCriticality(self, other):
105
+ """Return whether *other* is of same criticality/severity
106
+
107
+ Return whether this alarm condition is of same criticality/severity
108
+ as *other*
109
+ :param other: the alarm condition to compare against
110
+ """
111
+ return self.criticalityList().index(
112
+ self.criticalityLevel()
113
+ ) == self.criticalityList().index(other.criticalityLevel())
114
+
115
+ def __lt__(self, other):
116
+ return self.level < other.level
117
+
118
+
119
+ for i, condition in enumerate(AlarmCondition.__members__.values()):
120
+ condition.level = i