Browse files

Fixed bug in which fieldPos of Builder dot stimulus component couldn'…

…t be changed each frame

fieldPos attribute of Builder dot stimulus component couldn't be
changed each frame. Due to differences between handling of this
attribute called fieldPos as opposed to simply pos in the patch
Also fixed some typos in a tool tip for the patch stimulus hints and in
one code comment.
  • Loading branch information...
1 parent 812a78c commit d4b53cc6bfd764295fdc6d4a0d4308f3195b0f5f Michael MacAskill committed Mar 21, 2012
@@ -101,12 +101,12 @@ def getInitVals(params):
- #is constant to don't touch the parameter value
+ #is constant so don't touch the parameter value
elif inits[name].updates in ['constant',None,'None']:
continue #things that are constant don't need handling
#is changing so work out a reasonable default
- elif name == 'pos':
+ elif name in ['pos', 'fieldPos']:
elif name in ['ori','sf','size','height','color','phase','opacity',
@@ -102,6 +102,8 @@ def writeParamUpdates(self, buff, updateType):
paramCaps='SF' #setSF, not SetSf
elif thisParamName=='coherence':
paramCaps='FieldCoherence' #setSF, not SetSf
+ elif thisParamName=='fieldPos':
+ paramCaps='FieldPos'
paramCaps = thisParamName.capitalize()
#color is slightly special
@@ -48,7 +48,7 @@ def __init__(self, exp, parentName, name='patch', image='sin', mask='None', sf='
self.params['texture resolution']=Param(texRes, valType='code', allowedVals=['32','64','128','256','512'],
updates='constant', allowedUpdates=[],
- hint="Spatial positioning of the image on the patch (in range 0-1.0)",
+ hint="Resolution of the texture for standard ones such as sin, sqr etc. For most cases a value of 256 pixels will suffice",
label="Texture resolution")
self.params['interpolate']=Param(mask, valType='str', allowedVals=['linear','nearest'],
updates='constant', allowedUpdates=[],

0 comments on commit d4b53cc

Please sign in to comment.