![]() Although this sounds a little heavy, the simplicity is absolutely worth it! You don’t want to waste two days compiling 32 and 64 bit compatible versions of numpy again, do you? ![]() So when you download PsychoPy from their website, you’re not just getting the library, you’re also getting a whole new version of the Python language, the needed math libraries, and finally the psychopy library, all in one neat little package. Additionally, PsychoPy contains a whole separate application for building or coding experiments that replace and extend a text editor that you’d use to write the python script that actually gets run. In addition to itself, PsychoPy needs a few other libraries, like the opengl library that actually does the drawing and SciPy, which contains a bunch of scientific functions/constants/plotting things that help you analyze the data. ![]() However, in order to offer you these very broad options, PsychoPy itself depends on other “lower-level” libraries that are closer to the hardware, so to speak. The PsychoPy library says “if you ask me to draw a rectangle on the screen, I’ll make sure that the right pixels are turned on and off”. You say what you want PsychoPy to do in terms of shapes or words or one-point-five second durations, and then it handles the details of updating each pixel on the screen each frame that gets drawn 60 times a second, logging and summarizing everything accordingly. PsychoPy is a library (think of it as an “interface” or a “contract”) written in Python that transforms “high level” commands about drawing things to the screen that people understand (like “draw a rectangle for 2 seconds, then draw some text for two seconds, then listen to a button response”) into “low level” commands (like “right now make this pixel black and this pixel black and this pixel black and this one white and do that for 16 microseconds and then make this pixel black and this pixel black and listen for bits from the keyboard than mean ascii code ‘12’ for the next 16 microseconds”). Python is the programming language that PsychoPy is written in. PsychoPy is a collection of tools that let you build psychological experiments. Here goes! Q) What’s the difference between Python and PsychoPy? I’ve been getting a lot of questions on PsychoPy as people start to use it for their own experiments, so I’m posting answers to a few of the most commoon ones.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |