Skip to content

Commit 3d780cb

Browse files
making _ASI_ERRORS private
1 parent 4565e47 commit 3d780cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

microscope/controllers/asi.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
# Error codes are dumped to the screen with the last error code shown first using the ‘DU Y‘
7373
# command. The table below lists the meanings of the error codes as of this publication.
7474
# Error Number* Error Description
75-
ASI_ERRORS = {
75+
_ASI_ERRORS = {
7676
0: "No Error",
7777
1: "OVERTIME - RECOVERABLE. Error caused by competing tasks using the microprocessor.",
7878
2: "OVERTIME - RECOVERABLE. Error caused by competing tasks using the microprocessor.",
@@ -276,7 +276,7 @@ def read_multiline(self):
276276
# this is an error string
277277
error = line[2:].strip()
278278
raise (
279-
f"ASI controller error: {error},{ASI_ERRORS[error]}"
279+
f"ASI controller error: {error},{_ASI_ERRORS[error]}"
280280
)
281281
return output
282282

@@ -397,7 +397,7 @@ def get_absolute_position(self, axis: int) -> float:
397397
axis_name = self._axis_mapper[axis]
398398
position = self.get_command(bytes(f"WHERE {axis_name}", "ascii"))
399399
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])]}")
401401
else:
402402
return float(position.strip()[2:])
403403

@@ -525,7 +525,7 @@ def _get_setting(self, command, axis, dtype, value):
525525
# this is an error string
526526
error = answer[2:]
527527
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]}"
529529
)
530530
else:
531531
raise Exception(

0 commit comments

Comments
 (0)