Skip to content

Commit 7d3077b

Browse files
committed
Documenation
1 parent 4c504c3 commit 7d3077b

13 files changed

+215
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
stimuli/*
22
data/*
33
*.pyc
4+
docs/build/*

.readthedocs.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Set the version of Python and other tools you might need
9+
build:
10+
os: ubuntu-20.04
11+
tools:
12+
python: "3.9"
13+
14+
# Build documentation in the docs/ directory with Sphinx
15+
sphinx:
16+
configuration: docs/conf.py
17+
18+
# Optionally build your docs in additional formats such as PDF
19+
formats:
20+
- pdf
21+
22+
# Optionally declare the Python requirements required to build your docs
23+
python:
24+
install:
25+
- requirements: docs/requirements-build-docs.txt

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"esbonio.sphinx.confDir": ""
3+
}

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ the functional sub-regions of the human cerebellum
77
The tasks are Visual Search, Action Observation, N Back,
88
Social Prediction, and Semantic Prediction
99

10-
#### Authors: Maedbh King, Ladan Shahshahani, Suzanne Witt
10+
#### Authors: Diedrichsenlab (Maedbh King, Ladan Shahshahani, Suzanne Witt, Bassel Arafat, Ince Hussain)
1111

1212
## Installation
1313

@@ -24,7 +24,7 @@ git clone https://github.com/maedbhk/mdtb_reduced.git
2424
2525
### Installing the Required Python Version
2626

27-
This project requires **python version 3.7.0**. Please ensure it is installed globally on your local machine.
27+
This project requires **python version >3.7.0**. Please ensure it is installed globally on your local machine.
2828

2929
If you are running Mac OS X or Linux, it is recommended to use [`pyenv`](https://github.com/pyenv/pyenv)
3030
for python version management. The full installation instructions can be found [here](https://github.com/pyenv/pyenv#installation).

docs/Makefile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = .
9+
BUILDDIR = build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/building_experiment.rst

Whitespace-only changes.

docs/conf.py

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Configuration file for the Sphinx documentation builder.
2+
#
3+
# This file only contains a selection of the most common options. For a full
4+
# list see the documentation:
5+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
6+
7+
# -- Path setup --------------------------------------------------------------
8+
9+
# If extensions (or modules to document with autodoc) are in another directory,
10+
# add these directories to sys.path here. If the directory is relative to the
11+
# documentation root, use os.path.abspath to make it absolute, like shown here.
12+
#
13+
import os
14+
import sys
15+
sys.path.insert(0, os.path.abspath('../experiment_code'))
16+
17+
# -- Project information -----------------------------------------------------
18+
19+
project = 'MDTB_experiment'
20+
copyright = '2023, Diedrichsenlab'
21+
author = 'Diedrichsenlab'
22+
23+
# The full version, including alpha/beta/rc tags
24+
release = 'v.0.1a'
25+
26+
27+
# -- General configuration ---------------------------------------------------
28+
29+
# Add any Sphinx extension module names here, as strings. They can be
30+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
31+
# ones.
32+
extensions = ['sphinx.ext.napoleon',
33+
'sphinx.ext.autodoc',
34+
'sphinx.ext.autosectionlabel',
35+
'sphinx.ext.mathjax',
36+
'sphinx.ext.intersphinx',
37+
'sphinx.ext.doctest',
38+
'nbsphinx']
39+
40+
napoleon_custom_sections = [('Returns', 'params_style')]
41+
42+
# Add any paths that contain templates here, relative to this directory.
43+
templates_path = ['_templates']
44+
45+
# List of patterns, relative to source directory, that match files and
46+
# directories to ignore when looking for source files.
47+
# This pattern also affects html_static_path and html_extra_path.
48+
exclude_patterns = ['build']
49+
50+
# Make sure that class constructors are documented
51+
autoclass_content = 'both'
52+
53+
# -- Options for HTML output -------------------------------------------------
54+
55+
# The theme to use for HTML and HTML Help pages. See the documentation for
56+
# a list of builtin themes.
57+
#
58+
html_theme = 'sphinx_rtd_theme'
59+
60+
# Add any paths that contain custom static files (such as style sheets) here,
61+
# relative to this directory. They are copied after the builtin static files,
62+
# so a file named "default.css" will overwrite the builtin "default.css".
63+
html_static_path = ['_static']

docs/index.rst

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.. MDTB_experiment index
2+
3+
Multi-domain task Battery (MDTB) experiments
4+
============================================
5+
6+
Licence and Acknowledgements
7+
----------------------------
8+
9+
10+
Documentation
11+
-------------
12+
.. toctree::
13+
:maxdepth: 2
14+
:caption: Contents:
15+
16+
installation.rst
17+
running_experiment.rst
18+
building_experiment.rst
19+
reference.rst
20+
21+
Indices and tables
22+
------------------
23+
24+
* :ref:`genindex`
25+
* :ref:`modindex`
26+
* :ref:`search`

docs/installation.rst

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
Installation
2+
============
3+
4+
Cloning this Repository
5+
=======================
6+
7+
1. Copy the git repo URL. Click the "Clone or Download" button and copy the link (`https://github.com/maedbhk/mdtb_reduced.git`).
8+
2. Go to your terminal and navigate (using `cd` and `ls` commands) to the directory where you want to clone the repository.
9+
3. Use `git clone` to download the entire folder to your computer:
10+
```
11+
git clone https://github.com/maedbhk/mdtb_reduced.git
12+
```
13+
14+
> NOTE: If you want to learn more about git, check out this tutorial [here](https://rogerdudler.github.io/git-guide/).
15+
16+
### Installing the Required Python Version
17+
18+
This project requires **python version >3.7.0**. Please ensure it is installed globally on your local machine.
19+
20+
If you are running Mac OS X or Linux, it is recommended to use [`pyenv`](https://github.com/pyenv/pyenv)
21+
for python version management. The full installation instructions can be found [here](https://github.com/pyenv/pyenv#installation).
22+
23+
Below is an abridged version of the `pyenv` install procedure for Max OS X:
24+
25+
Install `pyenv` using Homebrew:
26+
27+
$ brew update
28+
$ brew install pyenv
29+
30+
Add `pyenv init` to your shell:
31+
32+
$ echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
33+
$ source ~/.bash_profile
34+
35+
Install the required version of python:
36+
37+
$ pyenv install 3.7.0
38+
39+
Installing the Required Python Packages
40+
=======================================
41+
42+
This project uses [`pipenv`](https://github.com/pypa/pipenv) for virtual environment and python package management.
43+
44+
Ensure pipenv is installed globally:
45+
46+
$ brew install pipenv
47+
48+
Navigate to the top-level directory in `mdtb_reduced` and install the packages from the `Pipfile.lock`.
49+
This will automatically create a new virtual environment for you and install all requirements using the correct version of python.
50+
51+
$ pipenv install

docs/reference.rst

Whitespace-only changes.

docs/requirements-build-docs.txt

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
numpy
2+
sphinx>=1.4
3+
sphinxcontrib-bibtex
4+
sphinx-copybutton
5+
pandas
6+
matplotlib
7+
ipykernel
8+
nbsphinx
9+
scipy
10+
seaborn

docs/running_experiment.rst

Whitespace-only changes.

psychopy-env.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: psychopy
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- python=3.8
6+
- psychopy
7+
- pip
8+
- pip:
9+
- psychtoolbox
10+
- pygame
11+
- pyo
12+
- pyparallel; platform_system != "Windows"
13+
- SoundFile; platform_system == "Windows"
14+
- websocket_client

0 commit comments

Comments
 (0)