Skip to content

Commit b034c2d

Browse files
author
Nicolas Legrand
authored
Documentation requirement and syntax fixes (#64)
1 parent 9f3211c commit b034c2d

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ jobs:
2424

2525
- name: Build
2626
run: |
27-
sudo apt-get install graphviz
27+
conda install -c conda-forge python-graphviz
2828
pip install psychopy==2020.1.2
29-
pip install -r requirements.txt
3029
pip install -r requirements-docs.txt
31-
pip install .
3230
sphinx-build -b html docs/source docs/build/html
3331
3432
- name: Deploy 🚀

docs/source/stats.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Using the preprocessing function
44

5-
The :py:mod:`cardioception.reports` module includes a function :py:mod:`cardioception.reports.preprocessing` that automates the analysis and extraction of behavioural variables from the main outputs saved by the task. The function only requires the `final.txt` data frame (either the Pandas data frame or simply a path to the file) that is saved in each subject folder and will return a summary data frame containing the response time, the psychometric parameter estimated by the Psi algorithm and Bayesian inference as well as SDT measures and metacognitive efficiency (meta-d prime). This approach is the most straightforward to extract relevant parameters using default settings that will fit most users' needs.
5+
The {py:mod}`cardioception.reports` module includes a function {py:fun}`cardioception.reports.preprocessing` that automates the analysis and extraction of behavioural variables from the main outputs saved by the task. The function only requires the `final.txt` data frame (either the Pandas data frame or simply a path to the file) that is saved in each subject folder and will return a summary data frame containing the response time, the psychometric parameter estimated by the Psi algorithm and Bayesian inference as well as SDT measures and metacognitive efficiency (meta-d prime). This approach is the most straightforward to extract relevant parameters using default settings that will fit most users' needs.
66

77
This script exemplifies how this function can be used to extract summary statistics from a result folder. It is assumed that the script is in a folder that contains the `data` folder in which the main outputs of the task are saved. You may addapt the following script to fit your needs:
88

@@ -35,7 +35,7 @@ summary_df.to_csv("results.tsv", sep="\t", index=False)
3535

3636
## Report templates
3737

38-
Here, you will find the report templates used to produce the HTML reports when calling the :py:fun:`cardioception.reports.report` function. We provide one for the Heart Rate Discrimination task and one for the Heart Beat Counting task. You can navigate the notebooks by clicking on the links or run it interactively in [Google Colab](https://colab.research.google.com/) using the badges, and upload your own data. Visualizing the data this way is recommended to assess the quality of the PPG recording or the general performance of the participant during the tasks.
38+
Here, you will find the report templates used to produce the HTML reports when calling the {py:fun}`cardioception.reports.report` function. We provide one for the Heart Rate Discrimination task and one for the Heart Beat Counting task. You can navigate the notebooks by clicking on the links or run it interactively in [Google Colab](https://colab.research.google.com/) using the badges, and upload your own data. Visualizing the data this way is recommended to assess the quality of the PPG recording or the general performance of the participant during the tasks.
3939

4040
```{toctree}
4141
---

requirements-docs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
-e .
12
xarray>=2022.6.0
23
pymc>=5.0.1
3-
matplotlib>=3.0.2
44
pydata-sphinx-theme>=0.12.0
55
sphinx-bootstrap-theme>=0.8.1
66
sphinxcontrib-bibtex>=2.4.2

0 commit comments

Comments
 (0)