So, I’m trying to figure out the best way to tackle this challenge of running PsychoPy experiments built using vastly different versions. It’s a problem for us if we can’t rely on PsychoPy working as expected when we get there, and to me it’s also a shame that the staff’s view of PsychoPy (which I mostly quite like) is darkened by this. They’ve tried using anaconda but they still have problems now and then. Some research groups have experiments that are >5 years old while others (including us) want to use one of the latest versions. When we asked about using PsychoPy at the facility the staff sighed, because they’ve had issues with running different versions of PsychoPy on the computers. In both cases we need to run PsychoPy on computers used by different research groups. Some of the experiments will be done with the participant inside of the MR camera, others outside of it. Start VS Code and open any Python file, for example this one (use Alt+click to download it, ignore warnings, it is has only comments, so cannot harm you).I’m currently designing PsychoPy experiments that will be used at an MRI-scanner facility. However, you can also work with Jupyter notebooks in VS Code directly.Īs in case of Anaconda, download the installer for your platform and follow the instructions. At the early stages, we will mostly use Jupyter notebooks and I would recommend using Jupyter notebooks using the default browser-based editor you installed as part of Anaconda. We will start use it in earnest, once our programs grow to be sufficiently long and complex. Visual Studio Code is a free lightweight open-source editor with strong support for Python. Please read the online documentation to familiarize yourself with Jupyter Notebook basic interface, e.g. how to create a new cell, run it, etc. Alternatively, you can start Jupyter Notebook directly from the start menu. You can use Anaconda Navigator that allows you to choose a specific programming environment, including Jupyter Notebook that we will use (not JupyterLab, it is more versatile but we want to keep things simple at the beginning!). Follow the installer instructions and use defaults, unless you have reasons to modify them (e.g. folder location, as the drive for the default choice may have limited available space, as in my case).Īfter installation you will have a new Anaconda3 (64-bit) folder that contains links to programs. I would recommend the latter, so that we all have maximally similar setup (it won’t really make a difference in practice, though). You can pick either 32- or 64-bit version. Follow this link and download the installer suitable for your platform. 18.4 Target and TimedResponseTask classesįirst, install Anaconda, a Python distribution that includes many packages and tools out-of-the-box, makes it easy to install new packages and keep them updated.18 Guitar Hero: staircase and iterator functions.17.20 The alien armada wins: missed them!.17 Space invaders: mixins and duck typing.16.9 Virtual attributes via getters and setters.15.9 Calling methods from other methods.15.6 Flexible accumulator with a subtract method.15.1.1 Classes and objects (instances of classes).15 Snake game: object-oriented programming.14.11 Bells and whistles: blinking game over message.11.4 Keeping sounds organized: dictionary comprehension.10.10 Game over, if you run out of cards.10.7 Remembering which cards were turned.10.6 Limiting flipping to just two cards.10.4 Lots of cards, using list enumeration.9.8 Using dictionary to represent a card.9.3 Python function arguments/parameters.8.7 Make the square jump on your command!.8.4 Adding a square and placing it not at the center of the window.6.12 Transported by bats to a random cave.6.2 Variables as post-it stickers (mutable objects).6.1 Recall, Variables as Boxes (immutable objects).5.8 Adding prompt parameter to input_int().Function isolates code from the rest of the program.4.6 Checking that string can be converted to an integer.4.4 Checking whether a value is in the list.3.10 Counting game rounds (Exercise 11).3.7 Show remaining attempts (Exercise 8).3.6 Limiting number of attempts with a break (Exercise 7).3.5 Correct end-of-game message (Exercise 6).3.4 Limiting number of attempts via break (Exercise 5).3.3 Breaking (and exiting, Exercise #4).2.8 Picking number randomly (Exercise 12).2.6 Grouping statements via identation (exercise #9).2.5 Conditions and comparisons (exercises 3-8).2.3 Asking user for a guess (Exercise 2). Python for social and experimental psychology.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |