Skip to content

Docs/dataset docstrings - #688

Open
AgarwalNilay wants to merge 10 commits into
gallantlab:mainfrom
evi-hendrikx:docs/dataset-docstrings
Open

Docs/dataset docstrings#688
AgarwalNilay wants to merge 10 commits into
gallantlab:mainfrom
evi-hendrikx:docs/dataset-docstrings

Conversation

@AgarwalNilay

Copy link
Copy Markdown
Contributor

docstrings for dataset functions

@AgarwalNilay
AgarwalNilay force-pushed the docs/dataset-docstrings branch from 12159e1 to 728c76a Compare August 21, 2026 01:50
Comment thread cortex/dataset/braindata.py Outdated
Returns
-------
generator
Yields `self`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Yields `self`.
Yields `BrainData`.

Comment thread cortex/dataset/views.py Outdated
Comment on lines 650 to 652

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still true with the pure Python surf2surf implementation?

AgarwalNilay and others added 10 commits August 24, 2026 10:04
Spells out what actually flows through the previously-vague **kwargs
line: state, priority, stim, rate, delay, filter, and (Volume2D/Vertex2D
only) alpha.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The docstring claimed this calls cortex.freesurfer.vertex_to_vertex(),
which no longer exists; the code actually calls
db.get_mri_surf2surf_matrix(). Also adds the missing Returns section.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
These resolve as the actual inherited methods surfaced on the website
for Volume/Vertex (.raw) and Volume2D/Vertex2D/VolumeRGB/VertexRGB
(.copy/.from_hdf, unoverridden).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Both claimed kwargs must be BrainData or Dataset objects; normalize()
actually also accepts tuples, filename strings, and dicts.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…erlay/uniques

All were previously undocumented public methods.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…niques

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Docstring was a literal """TODO: WHAT IS THIS""" left by the original
author; resolves as Volume.uniques/Vertex.uniques on the website.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- BrainData.uniques(): describe the yielded type (BrainData) rather
  than the self-specific implementation detail, per review suggestion.
- Vertex.map(): update the stale "active freesurfer environment" NOTE.
  get_mri_surf2surf_matrix was rewritten as a pure-Python
  implementation (direct nnfr construction from sphere.reg files) that
  requires no mri_surf2surf binary call; reworded to reflect the
  actual requirement (sphere.reg files existing on disk, produced by
  a prior recon-all run).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@AgarwalNilay
AgarwalNilay force-pushed the docs/dataset-docstrings branch from 728c76a to a2b050e Compare August 24, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants