Skip to content

Commit

Permalink
BF: JS outputs should be the version of current psychopy if not useVe…
Browse files Browse the repository at this point in the history
…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 789d24e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions psychopy/experiment/_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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__)
Expand Down

0 comments on commit 789d24e

Please sign in to comment.