Commit d521958
committed
DeformableMirror: require n_actuators instead of _n_actuators.
Replaces the documented requirement for concrete implementations to
have a `_n_actuators` property and instead make the `n_actuators` an
abstract property. This is better because:
1) it is enforced by abc instead of being just documented
2) one less property required. For example, mirao is always 52 and is
defined on the library, and for bmc it is a field of the DM struct.
3) mypy does not like the use of the private property by the ABC which
is not declared on the ABC.1 parent 90aa4cd commit d521958
File tree
6 files changed
+23
-16
lines changed- microscope
- mirror
- testsuite
6 files changed
+23
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
941 | 941 | | |
942 | 942 | | |
943 | 943 | | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
952 | 947 | | |
953 | 948 | | |
954 | 949 | | |
955 | 950 | | |
956 | 951 | | |
957 | 952 | | |
958 | 953 | | |
| 954 | + | |
959 | 955 | | |
960 | | - | |
| 956 | + | |
961 | 957 | | |
962 | 958 | | |
963 | 959 | | |
| |||
971 | 967 | | |
972 | 968 | | |
973 | 969 | | |
974 | | - | |
| 970 | + | |
975 | 971 | | |
976 | 972 | | |
977 | | - | |
| 973 | + | |
978 | 974 | | |
979 | 975 | | |
980 | 976 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
127 | 131 | | |
128 | 132 | | |
129 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 61 | | |
66 | 62 | | |
67 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
379 | 383 | | |
380 | 384 | | |
381 | 385 | | |
| |||
0 commit comments