Fixed type annotations in autofocus and mock stage
I don't know why these didn't fail before - possibly because of incomplete type information from old numpy... I removed a few annotations because they were failing (e.g. np.sum can return a scalar or an array), but I don't think this should be a problem - the function inputs and return values are still typed.
This commit is contained in:
parent
cd5e32b843
commit
e73ee8875c
2 changed files with 10 additions and 7 deletions
|
|
@ -89,7 +89,7 @@ class MissingStage(BaseStage):
|
|||
)
|
||||
displacement = move
|
||||
|
||||
initial_move = np.array(displacement, dtype=np.int)
|
||||
initial_move = np.array(displacement, dtype=np.integer)
|
||||
|
||||
self._position = list(np.array(self._position) + np.array(initial_move))
|
||||
logging.debug(np.array(self._position) + np.array(initial_move))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue