Skip to content
Permalink
Browse files

BF: Remove "from exp settings" from movie height units on html export

  • Loading branch information...
dvbridges committed Mar 11, 2019
1 parent e5cd83e commit 8cbaf8a713c023c17158bc4b7f90f322b163d1e2
Showing with 7 additions and 1 deletion.
  1. +7 −1 psychopy/experiment/components/movie/__init__.py
@@ -139,6 +139,12 @@ def writeInitCode(self, buff):
self._writeCreationCode(buff, useInits=True)

def writeInitCodeJS(self, buff):

if self.params['units'].val == 'from exp settings':
unitsStr = 'undefined'
else:
unitsStr = "%(units)s" % self.params

inits = getInitVals(self.params)
noAudio = '{}'.format(inits['No audio'].val).lower()
for param in inits:
@@ -161,7 +167,7 @@ def writeInitCodeJS(self, buff):
" noAudio: {noAudio},\n"
" }});\n").format(name = inits['name'],
movie = inits['movie'],
units = inits['units'],
units = unitsStr,
pos = inits['pos'],
size = inits['size'],
ori = inits['ori'],

0 comments on commit 8cbaf8a

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