Skip to content

Commit

Permalink
BF: Builder PsychoJS code for text components formatted badly
Browse files Browse the repository at this point in the history
The units parameter was being given additional quote symbols
leading to a syntax error (only happened when not inheritting
from default so wasn't noticed before)
  • Loading branch information
peircej committed Jun 15, 2017
1 parent 2dcadd0 commit b399a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psychopy/app/builder/components/text/__init__.py
Expand Up @@ -124,7 +124,7 @@ def writeInitCodeJS(self, buff):
if self.params['units'].val == 'from exp settings': if self.params['units'].val == 'from exp settings':
unitsStr = "" unitsStr = ""
else: else:
unitsStr = "units:'%(units)s', " % self.params unitsStr = "units : %(units)s, " % self.params
# do writing of init # do writing of init
# replaces variable params with sensible defaults # replaces variable params with sensible defaults
inits = getInitVals(self.params, 'PsychoJS') inits = getInitVals(self.params, 'PsychoJS')
Expand Down

0 comments on commit b399a50

Please sign in to comment.