Commit a816a98
committed
tango command: use
Use `DeviceProxy.attribute_query()` method to check if an attribute
exist. This way, we don't need look in the list of all device
attributes. This list can potentionally be quite long.
Move the code for checking if an attribute exists to it's own
dedicated function, to improve code readability.attribute_query() to check if attribute exists1 parent 24030ca commit a816a98
File tree
3 files changed
+22
-33
lines changed- mxcubecore/Command
- test
3 files changed
+22
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
146 | 163 | | |
147 | 164 | | |
148 | 165 | | |
| |||
246 | 263 | | |
247 | 264 | | |
248 | 265 | | |
249 | | - | |
250 | | - | |
251 | | - | |
| 266 | + | |
252 | 267 | | |
253 | 268 | | |
254 | 269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 20 | | |
46 | 21 | | |
47 | 22 | | |
| |||
163 | 138 | | |
164 | 139 | | |
165 | 140 | | |
166 | | - | |
| 141 | + | |
167 | 142 | | |
168 | 143 | | |
169 | 144 | | |
| |||
186 | 161 | | |
187 | 162 | | |
188 | 163 | | |
189 | | - | |
| 164 | + | |
190 | 165 | | |
191 | 166 | | |
192 | 167 | | |
| |||
207 | 182 | | |
208 | 183 | | |
209 | 184 | | |
210 | | - | |
| 185 | + | |
211 | 186 | | |
212 | 187 | | |
213 | 188 | | |
| |||
232 | 207 | | |
233 | 208 | | |
234 | 209 | | |
235 | | - | |
| 210 | + | |
236 | 211 | | |
237 | 212 | | |
238 | 213 | | |
| |||
0 commit comments