From 078fa8eca6ea18494da89cded679f7ff9552b26f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A4kel=2C=20Frank?= <jaekel@psychologie.tu-darmstadt.de> Date: Wed, 17 Jun 2020 12:18:07 +0200 Subject: [PATCH] Added instructions to install via pip --- README.md | 19 ++++++++++++++++--- requirements.txt | 7 +++++++ 2 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 requirements.txt diff --git a/README.md b/README.md index b1996e2..7405475 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Signal Detection Theory Homework +# Signal Detection Theory: Homework -Homework for *Cognitive Science I: Perception* at [TU Darmstadt](https://www.tu-darmstadt.de/cogsci/studying_cogsci/index.en.jsp). This homework replaces the lab work during the 2020 corona pandemic. +Homework for *Cognitive Science I: Perception* at [TU Darmstadt](https://www.tu-darmstadt.de/cogsci/studying_cogsci/index.en.jsp). This homework replaces the lab work during the 2020 corona pandemic. Signal detection theory is one of the most successful theories in all of cognitive science and psychology. We assume you've already covered the basics of signal detection theory elsewhere. In the course we use the following text: @@ -10,7 +10,11 @@ For this homework the most relevant sections are 1.1-1.3 (p. 3-15), 2.1-2.3 (p. ## Installation -You need python, psychopy and jupyter to run the tutorials. It's easiest if you install everything through `conda`. If you know what you're doing or you already have a working python and jupyter environment you might also be able to do it differently than described here. However, as psychopy requires python 3.6 and you don't want to mess with your existing python installation it's probably better to follow these instructions. If you don't already have anaconda installed, install anaconda from +You need python, psychopy and jupyter to run the tutorials. It's easiest if you install everything through `conda`. If you know what you're doing or you already have a working python and jupyter environment you might also be able to install things via `pip`. However, as psychopy seems to require python 3.6 and you don't want to mess with your existing python installation it's probably better to follow the conda instructions. + +### conda + +If you don't already have anaconda installed, install anaconda from https://www.anaconda.com/products/individual @@ -34,6 +38,15 @@ jupyter notebook and click on `signal_detection_data_collection.ipynb` in the browser window that will open. Now you're ready to go. +### pip + +Alternatively, if you like `pip` better or for some reason the above didn't really work for you, you can also try `pip`. + +``` +pip install -r requirements.txt +``` + +Now you can directly start `jupyter notebook` (or even `jupyter lab` if you have a more recent version) and load `signal_detection_data_collection.ipynb`. ## Working with jupyter notebooks and git diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..fd73dc6 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,7 @@ +psychopy +jupyter +psychtoolbox +pygame +pyo +pyparallel; platform_system != "Windows" +SoundFile; platform_system == "Windows" -- GitLab