|
72 | 72 | # Error codes are dumped to the screen with the last error code shown first using the ‘DU Y‘ |
73 | 73 | # command. The table below lists the meanings of the error codes as of this publication. |
74 | 74 | # Error Number* Error Description |
75 | | -ASI_ERRORS = { |
| 75 | +_ASI_ERRORS = { |
76 | 76 | 0: "No Error", |
77 | 77 | 1: "OVERTIME - RECOVERABLE. Error caused by competing tasks using the microprocessor.", |
78 | 78 | 2: "OVERTIME - RECOVERABLE. Error caused by competing tasks using the microprocessor.", |
@@ -276,7 +276,7 @@ def read_multiline(self): |
276 | 276 | # this is an error string |
277 | 277 | error = line[2:].strip() |
278 | 278 | raise ( |
279 | | - f"ASI controller error: {error},{ASI_ERRORS[error]}" |
| 279 | + f"ASI controller error: {error},{_ASI_ERRORS[error]}" |
280 | 280 | ) |
281 | 281 | return output |
282 | 282 |
|
@@ -397,7 +397,7 @@ def get_absolute_position(self, axis: int) -> float: |
397 | 397 | axis_name = self._axis_mapper[axis] |
398 | 398 | position = self.get_command(bytes(f"WHERE {axis_name}", "ascii")) |
399 | 399 | if position[3:4] == b"N": |
400 | | - print(f"Error: {position} : {ASI_ERRORS[int(position[4:6])]}") |
| 400 | + print(f"Error: {position} : {_ASI_ERRORS[int(position[4:6])]}") |
401 | 401 | else: |
402 | 402 | return float(position.strip()[2:]) |
403 | 403 |
|
@@ -525,7 +525,7 @@ def _get_setting(self, command, axis, dtype, value): |
525 | 525 | # this is an error string |
526 | 526 | error = answer[2:] |
527 | 527 | raise Exception( |
528 | | - f"ASI controller error on command {command}: {error},{ASI_ERRORS[error]}" |
| 528 | + f"ASI controller error on command {command}: {error},{_ASI_ERRORS[error]}" |
529 | 529 | ) |
530 | 530 | else: |
531 | 531 | raise Exception( |
|
0 commit comments