Repository navigation
1.0 documentation, README and release preparation - #121
Merged
Merged
Conversation
…e folders Installation goes under getting-started/, the tasks overview, PAT, HSD design and HRD tutorials under tasks/, and the API, citation and references pages under reference/. Relative links, figure paths and the autosummary output directory are adjusted so every page still resolves. The sidebar uses captioned, nested toctrees.
The general half of measuring.md, from its opening to the end of "A stronger measure of heartbeat timing", moves to the end of the tasks overview under a Theory heading, with one sentence pointing to the HRD half. From "Why the HRD measures cardiac beliefs" on, the page becomes tasks/hrd/theory.md. The text is unchanged apart from links and the figure path.
The page pulls the repository-root CHANGELOG.md in with a MyST include, so the changelog lives in one file and appears under Reference.
Every section of user_guide.md now has one home. Recording devices and Running a session are new pages under Getting started; the Psi staircase goes to Running the HRD, the HTML reports to an HRD page of their own, the counting task's score and schedule to a new Heartbeat Counting page, and the HSD section to Running the HSD. Sections that repeated the installation page or the tasks overview are dropped, as are the HSD measurements that the design page already holds. The HRD and HSD get landing pages so the sidebar nests their pages, and links to the old guide point to the new pages.
The bridge, channel-label and electrode facts now live once, on the Recording devices page.
…tant stimuli Each says the task is coming, what participants do, its citation, and that a review of the literature will follow. The comparison table on the tasks overview gains a column for each, marked coming soon.
The install admonition keeps only the command; the import-name snippet and the per-task descriptions, which the installation page and tasks overview already hold, are dropped, and the task section becomes the README's six-row table linking to each task page. The recording-devices section moves to its own page, "Where to go next" maps the new hierarchy, the development note joins Getting help, and the sentence about unofficial forks is removed.
The tasks overview states once what beta means: close to feature complete and still being rigorously validated. The same word replaces "experimental" for these two tasks on the other pages, in the API page, in the unreleased changelog section, in the HSD wrapper's docstring and in the HSD getParameters docstring, whose path to the design page is updated too. Counts of hardware runs that would go stale are dropped outside the design page's own record.
… code - HSD shortest delay presented is 140 ms, not 130: candidates run from 80 ms in 20 ms steps above a 130 ms floor (HSD/config.py absoluteDelays, HSD/_constants.py MIN_DELAY_S). - HSD ceiling is 0.75 of the period less a 10 percent margin, about 0.68, so 600 ms needs a period over 0.89 s (HSD/config.py ceilingMargin and bounds). - HRD Psi intensity range is -50.5 to 50.5 BPM, not -40 to 40 (HRD/config.py intensRange and alphaRange). - setup="test" works for the HRD and HBC; the HSD needs beat_source and tone_player with it, and the PAT has no setup argument.
The PAT page title, its opening, the HSD design page and Running the HSD now match the tasks overview and the README. The design page's heading keeps its anchor, which is case-insensitive.
"analyse" and "familiarisation" in the general half of the theory text and "analysing" in the tutorials index description, per the AGENTS.md convention. No other wording changes.
sphinx-reredirects writes a stub at each old path. measuring.html goes to the HRD theory page and user_guide.html to Running a session; every other moved page goes to its new location. Pinned to 0.1.4, the last release that does not require Sphinx 7.1, since the build is held at Sphinx 5.3.
The README's documentation links, the changelog's paths to the design and PAT pages, and the workshop's link to the Psi section of the psychophysics tutorial now name the restructured pages, so they keep their fragments rather than relying on the redirects.
…rial reasons and shortest HSD delay
… of the running tasks
…n it, absorbing Running the HRD
…n it, absorbing Running the HSD
…e output and the scoring
…tions and the theory
The Tasks toctree listed only the overview, so the task pages were hidden one level down. It now lists the overview and each task page as siblings, in the order HRD, HBC, PAT, HSD, Whitehead, constant stimuli, and the overview's table and paragraphs follow the same order. The tutorial sidebar labels now equal the page titles, and the HBC measure cell reads as a sentence.
The general half moves out of the tasks overview and the HRD half out of tasks/hrd/theory.md, back into one page at tasks/theory.md, directly under Tasks. The text is the pre-split text; only the title, the figure path and the links change. The old measuring and tasks/hrd/theory URLs redirect to it, and every link and anchor that pointed at either half, including the README's two theory links, now points at the joined page.
Delay placement targets mu only (targets=("mu",)), so the HSD page no
longer says it is informative about sigma too. The dry-run figure leaves the
HSD page: it shows the posterior under the old floor and peak grids, and under
the shared grid the interval is 40 to 550 ms, so the sentence calling it a
located mu was wrong there. It stays on the design page with its caveat. The
design page now says the exteroceptive control is planned (roadmap item D,
not started) rather than shared with the PAT. Its title becomes HSD design and
validation, so it no longer repeats the HSD page's, and the sidebar label is
the title.
The side-by-side table of the two synchrony tasks now sits on the overview, under The PAT and the HSD, and the design page links to it. The design page keeps its own argument for the HSD's method. The PAT page's Where to go next and the overview's PAT paragraph point to the neutral comparison rather than to that argument.
EstimatedSlope is the psychometric function's standard deviation, so the column table now says a larger value means less precise. Catch trials are described as the code runs them, cycling through -30, +10, -20, +20, -10 and +30 BPM without updating the staircase. The page adds the screenNb row, a TaskConfig import example, an estimate of the tutorial's length, and the listenBPM comparability note that lived only in the changelog. A short Reliability section gives the test-retest correlations of Legrand et al. (2022).
Fixes the spelling of dictionary, recommended, behavioral and scaling; drops nStaircase, which is not an argument; gives the participant default as SubjectTest and the session type as str, as in the signature; names systole.recording.Oximeter, which is what the module imports; and repairs the role on psychopy.visual.Window. No code changes.
The example data section now names the Visceral Mind Project, cites Banellis et al. (2026), says the trial data are public as data/raw_hrd.csv in the Hierarchical Interoception repository, and that the tutorials use 512 of its participants. Adds the bibliography entry.
…y facts A new step runs ten HRD trials with setup="test" before any device is involved, and the oximeter check becomes the last step, marked as only for the USB oximeter. The guide names 3.11.9 and 3.10.11, the last point releases with a Windows installer. The conda route says environment.yml is for Windows, environment_linux.yml for Linux, and that there is no macOS file. Legacy versions now says what is known about the paper's code: data collected July to November 2020 on untagged code declaring 0.3.0, an HRD change between the two sessions, the CardioceptionPaper repository, and v0.4.0 (April 2021) as the first tagged release after it.
check_device returns five verdicts, not three: the table gains no data and signal present but no pulse detected. The oximeter section says the 3012LP is the only Nonin model tested, and the LSL section notes that a wired ECG gives the synchrony tasks less timing jitter than a Bluetooth hub, which until now only the HSD roadmap said.
…ession A pip install has no wrappers folder, so each wrapper in the table links to its raw file on main. A short checklist before each session covers the device check, a dry run, the volume and the port or stream.
The page is now titled How to cite and adds what was missing: the software's Zenodo DOI with a BibTeX entry, the references to cite for the HBC, PAT and HSD, Courtin et al. (2026) for the analysis models the tutorials send readers to, and the publications list the home page promises. The BibTeX doi field, here and in refs.bib, holds the DOI rather than a full URL.
Signatures no longer print type annotations, which Sphinx 5.3 rendered with raw ~typing. prefixes (SynchronyPsi, both TaskConfig classes); the numpydoc docstrings carry the types. The page drops the deprecated per-language HRD functions and the internal helpers waitInput and responseDecision, and lists the tasks in the common order. The generated pages stay reachable from the API page but are hidden from the sidebar, which they used to fill.
The snippet used an undefined my_silent_player. It now defines the silent player the headless test uses, imports what it calls, closes the window and the engine, and says that PATAutopilot lives in a private module whose interface may change.
…t they need The report notebooks glob for the pre-1.0 file names: the HRD notebook for *Intero_posterior.npy where 1.0 writes *_posterior-Intero.npy, the HBC notebook for per-trial .npy recordings where 1.0 writes *_ppg-<n>.txt. The page now says so, and separates the dependencies the package installs from the three it does not: jupyter nbconvert, metadpy and PyMC.
The overview repeated the run directory description that Running a session holds in full and every task page restates. It now names the layout and links to it.
The README said Running a session covered the task parameters. It covers what every session shares, and each task page has its own settings.
The task list and the layout cover all four tasks, with the PAT and HSD marked beta. The CI note reflects that black and isort now check rather than rewrite, the docs deploy line names main, and the install-name note says only that the install name is cardioception-toolbox and any other name is a bug.
CONTRIBUTING.md covers branching from and targeting dev, a development install, the CI test, type, format and lint commands, a warning that the session tests play tones at full volume through PsychoPy's audio backend, building the documentation, the three places a new language must be added, the copyright header and Apache 2.0 licence, and review by pull request.
The default branch is main. The home page's licence link and logo images and the Edit this page links now use it rather than master.
…e task cycles them
…ns and a Visceral Mind Project session
…s legacy and Courtin et al.'s per-condition ranges as courtin
…to /dev/, and fail the docs build on warnings
…, and link the README to the dev docs until it is
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The 1.0 work for the dev branch: everything needed before 1.0 is released, except the release itself.
Documentation
tutorials/plot_hrd_overview.py), and screenshot strips for the PAT and HSD.Code
TaskConfig(psiPreset="legacy" | "courtin")for the HRD. legacy (default) keeps the original paper's Psi settings; courtin uses the per-condition ranges from the hierarchical refit (Courtin et al., 2026). Settings per staircase go to the manifest.getParametersdocstring corrections.Repository
The whole-session HRD, HBC and headless tests play sound, so they were not run locally; CI runs them here. The config and stimulus-inventory tests pass locally, and the strict docs build passes for both channels.