Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ Repository = "https://github.com/viamrobotics/viam-python-sdk"

[project.optional-dependencies]
mlmodel = [
"numpy"
"numpy",
"packaging",
]

[build-system]
Expand Down
1 change: 0 additions & 1 deletion src/viam/services/mlmodel/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def make_ndarray(flat_data, dtype, shape):
# Creating our array as a uint32 array initially and then casting to int16 solves this.
if Version(np.__version__) >= Version("2") and dtype == np.int16:
arr = np.astype(make_array(flat_data, np.uint32), np.int16) # pyright: ignore [reportAttributeAccessIssue]

else:
arr = make_array(flat_data, dtype)
return arr.reshape(shape)
Expand Down
1 change: 0 additions & 1 deletion tests/mocks/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import inspect
from typing import Dict, List, Sequence, Set, Tuple, Union, get_args, get_origin, get_type_hints
from unittest.mock import AsyncMock, create_autospec


Expand Down
Loading