Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 90d4241

Browse filesBrowse files
committed
fix return type (properly)
1 parent 59f5792 commit 90d4241
Copy full SHA for 90d4241

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎spatialmath/base/argcheck.py

Copy file name to clipboardExpand all lines: spatialmath/base/argcheck.py
+2-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.