You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from psychopy import visual
win = visual.Window()
win.resetViewport()
with psychopy 2022.1.4 and python 3.8.13 on a Win10 laptop with integrated graphics, I get an error
File: "psychopy\visual\window.py", line 1710, in resetViewport
self.scissor = self.viewport = self.frameBufferSize
TypeError: this function takes 4 arguments (2 given)
It seems that the line should be self.scissor = self.viewport = [0,0] + self.frameBufferSize to correctly reset the viewport.
Edit: I didn't see the frameBufferSize is a numpy array, so the fix should be self.scissor = self.viewport = [0,0] + self.frameBufferSize.tolist()
The text was updated successfully, but these errors were encountered:
mdcutone
added
🐞 bug
Issue describes a bug (crash or error) or undefined behavior.
👀 visual
Issue with presentation of visual stimuli or graphics.
labels
Sep 20, 2022
When I run
with psychopy 2022.1.4 and python 3.8.13 on a Win10 laptop with integrated graphics, I get an error
It seems that the line should be
self.scissor = self.viewport = [0,0] + self.frameBufferSize
to correctly reset the viewport.Edit: I didn't see the frameBufferSize is a numpy array, so the fix should be
self.scissor = self.viewport = [0,0] + self.frameBufferSize.tolist()
The text was updated successfully, but these errors were encountered: