Permalink
Browse files

BF: JS outputs should be the version of current psychopy if not useVe…

…rsion

It was accidentally being set to the version that the experimernt was
*first created* in rather than the current version of the app
  • Loading branch information...
peircej committed Jan 17, 2019
1 parent c497741 commit 789d24ee45aa9dde946c63c342c94829ed670bc7
Showing with 2 additions and 0 deletions.
  1. +2 −0 psychopy/experiment/_experiment.py
@@ -170,6 +170,7 @@ def addRoutine(self, routineName, routine=None):
def writeScript(self, expPath=None, target="PsychoPy", modular=True):
"""Write a PsychoPy script for the experiment
"""
self.psychopyVersion = psychopy.__version__ # make sure is current
# set this so that params write for approp target
utils.scriptTarget = target
self.flow._prescreenValues()
@@ -248,6 +249,7 @@ def writeScript(self, expPath=None, target="PsychoPy", modular=True):
return script

def saveToXML(self, filename):
self.psychopyVersion = psychopy.__version__ # make sure is current
# create the dom object
self.xmlRoot = xml.Element("PsychoPy2experiment")
self.xmlRoot.set('version', __version__)

0 comments on commit 789d24e

Please sign in to comment.