Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BF: some errors with script compiling since PEP8 refactor #1253

Merged
merged 3 commits into from
Sep 30, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion buildCompleteInstaller.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "PsychoPy2"
!define PRODUCT_VERSION "1.84.0"
!define PRODUCT_VERSION "1.84.2"
!define PRODUCT_PUBLISHER "Jon Peirce"
!define PRODUCT_WEB_SITE "http://www.psychopy.org"
;!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\AppMainExe.exe"
Expand Down
8 changes: 8 additions & 0 deletions psychopy/CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ Changelog
PsychoPy 1.84
------------------------------

PsychoPy 1.84.2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* FIXED:

* Problem with renaming of Routines preventing experiment from re-loading #1248
* Fix to code generation for Static Components and some Keyboard Components (with variable "allowed keys" settings)

PsychoPy 1.84.1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion psychopy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import sys

# version info for PsychoPy
__version__ = '1.84.1'
__version__ = '1.84.2'
__license__ = 'GNU GPLv3 (or more recent equivalent)'
__author__ = 'Jonathan Peirce'
__author_email__ = 'jon@peirce.org.uk'
Expand Down
4 changes: 2 additions & 2 deletions psychopy/app/builder/components/mouse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def writeRoutineEndCode(self, buff):
code = ("# store data for %s (%s)\n" %
(currLoop.params['name'], currLoop.type))

buff.writeIndented(code)
buff.writeIndentedLines(code)

if store == 'final':
# buff.writeIndented("# get info about the %(name)s\n"
Expand All @@ -212,7 +212,7 @@ def writeRoutineEndCode(self, buff):
"%s.addData('%s.midButton', buttons[1])\n" % vals +
"%s.addData('%s.rightButton', buttons[2])\n" % vals)

buff.writeIndented(code)
buff.writeIndentedLines(code)
elif store != 'never':
# buff.writeIndented("# save %(name)s data\n" %(self.params))
for property in ['x', 'y', 'leftButton', 'midButton',
Expand Down
10 changes: 7 additions & 3 deletions psychopy/app/builder/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,9 +865,13 @@ def writeLoopStartCode(self, buff):
# write the code
code = ("\n# set up handler to look after randomisation of conditions etc\n"
"%(name)s = data.TrialHandler(nReps=%(nReps)s, method=%(loopType)s, \n"
" extraInfo=expInfo, originPath=-1,\n"
" trialList=" + condsStr + ",\n" # conditions go here
" seed=%(random seed)s, name='%(name)s')\n")
" extraInfo=expInfo, originPath=-1,\n")
buff.writeIndentedLines(code % inits)
# the next line needs to be kept separate to preserve potential string formatting
# by the user in condStr (i.e. it shouldn't be a formatted string itself
code = " trialList=" + condsStr + ",\n" # conditions go here
buff.writeIndented(code)
code = " seed=%(random seed)s, name='%(name)s')\n"
buff.writeIndentedLines(code % inits)

code = ("thisExp.addLoop(%(name)s) # add the loop to the experiment\n" +
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.84.1
1.84.2