Skip to content

Commit 0b4ddcf

Browse files
committed
BF: Movie Compon with stopTime=None was trying to calculate stop time
It led to undefine being added to the frameRemains calculation. Was caused by accidentally altering the contents of the movie params while trying to convert None->undefined Don't convert movie.params['stopTime'].val to be undefined! fixes gh-3182
1 parent 04fb931 commit 0b4ddcf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

psychopy/experiment/components/movie/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from __future__ import absolute_import, print_function
99

1010
from os import path
11+
import copy
1112
from psychopy import logging
1213
from psychopy.experiment.components import BaseVisualComponent, getInitVals, Param, _translate
1314

@@ -150,7 +151,7 @@ def _writeCreationCodeJS(self, buff, useInits):
150151
if useInits:
151152
inits = getInitVals(self.params)
152153
else:
153-
inits = self.params
154+
inits = copy.deepcopy(self.params)
154155

155156
noAudio = '{}'.format(inits['No audio'].val).lower()
156157
loop = '{}'.format(inits['loop'].val).lower()

0 commit comments

Comments
 (0)