8000 fix return type (properly) · flyinger/spatialmath-python@90d4241 · GitHub
[go: up one dir, main page]

Skip to content

Commit 90d4241

Browse files
committed
fix return type (properly)
1 parent 59f5792 commit 90d4241

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spatialmath/base/argcheck.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ def getvector(v, dim=None, out='array'):
132132
v = [v]
133133

134134
if isinstance(v, (list, tuple)):
135+
dt = np.float64 # return np arrays of this type
135136
if _sympy:
136137
if any([isinstance(x, sympy.Expr) for x in v]):
137138
dt = None
138-
else:
139-
dt = np.float64
139+
140140
if dim is not None and v and len(v) != dim:
141141
raise ValueError("incorrect vector length")
142142
if out == 'sequence':

0 commit comments

Comments
 (0)
0