Skip to content

Commit b1a77ca

Browse files
committed
BF: Remove asarray altogether, not needed for already numeric params
1 parent cd4e7d0 commit b1a77ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

psychopy/experiment/params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ def __str__(self):
171171
# will work if it can be represented as a float
172172
return "{}".format(float(self.val))
173173
except Exception: # might be an array
174-
return "asarray(%s, dytpe=float)" % self.val
174+
return "%s" % self.val
175175
elif self.valType == 'int':
176176
try:
177177
return "%i" % self.val # int and float -> str(int)
178178
except TypeError:
179-
return "asarray(%s, dytpe=int)" % self.val # try array of float instead?
179+
return "%s" % self.val # try array of float instead?
180180
elif self.valType in ['extendedStr','str', 'file', 'table', 'color']:
181181
# at least 1 non-escaped '$' anywhere --> code wanted
182182
# return str if code wanted

0 commit comments

Comments
 (0)