Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

setting gamma != 1 in stimuli.Extras.GaborPatch() leads to bug (?)

0 views
Skip to first unread message

Christophe Pallier

unread,
Aug 13, 2020, 6:34:23 AM8/13/20
to expyriment-users

  File "/home/cp983411/.expyriment/extras/expyriment_stimuli_extras/gaborpatch/__init__.py", line 62, in __init__
    background_colour=background_colour)
  File "/home/cp983411/.expyriment/extras/expyriment_stimuli_extras/gaborpatch/_gaborpatch.py", line 100, in __init__
    ((255/2.0) * phase * np.ones(pattern.shape) * pattern)  # alpha
ValueError: operands could not be broadcast together with shapes (3,57,51) (51,57)
Exception ignored in: <function Visual.__del__ at 0x7f66432f0d40>
Traceback (most recent call last):
  File "/home/cp983411/anaconda3/lib/python3.7/site-packages/expyriment/stimuli/_visual.py", line 270, in __del__
    if self._compression_filename is not None:
AttributeError: 'GaborPatch' object has no attribute '_compression_filename'
Reply all
Reply to author
Forward
0 new messages