Skip to content
Permalink
Browse files

BF: Check for valid Slider units on compile script.

  • Loading branch information...
dvbridges authored and peircej committed Sep 30, 2019
1 parent 973bd1d commit 23d80b49fce35d798b9c0d689b07fd7325087918
Showing with 4 additions and 0 deletions.
  1. +4 −0 psychopy/experiment/components/slider/__init__.py
@@ -197,6 +197,10 @@ def __init__(self, exp, parentName,
def writeInitCode(self, buff):

inits = getInitVals(self.params)
# check units
if inits['units'].val == 'from exp settings':
inits['units'].val = None

# build up an initialization string for Slider():
initStr = ("{name} = visual.Slider(win=win, name='{name}',\n"
" size={size}, pos={pos}, units={units},\n"

0 comments on commit 23d80b4

Please sign in to comment.
You can’t perform that action at this time.