Skip to content

permutation test docstrings should link to spatial_src_adjacency #11447

Closed

Description

@drammock

Proposed documentation enhancement

currently the docstring (under the adjacency parameter) includes a link to find_ch_adjacency (for sensor-space data) but not to spatial_src_adjacency (for source-space data). It should have both.

Activity

  1. hoechenberger commented on Feb 6, 2023

    @hoechenberger
    Member

    There's actually numerous adjacency-calculating functions that we probably should mention:

    spatial

    • spatial_src_adjacency
    • spatial_tris_adjacency
    • spatial_dist_adjacency
    • spatial_inter_hemi_adjacency

    spatio-temporal

    • spatio_temporal_src_adjacency
    • spatio_temporal_tris_adjacency
    • spatio_temporal_dist_adjacency

    Interestingly, none of them is prefixed with find_, contrary to find_ch_adjacency.

  2. sawradip commented on Feb 6, 2023

    @sawradip
    Contributor

    I would like to perform this task. Can you give me some directions?

  3. drammock commented on Feb 7, 2023

    @drammock
    MemberAuthor

    I don't think the *_tris_* and *_dist_* are worth mentioning actually --- the *_dist_* functionality is already available in the *_src_* functions (they simply default to dist=None), and in the context of permutation testing, users won't be working with tris. But adding spatio_temporal_src_adjacency makes sense, and spatial_inter_hemi_adjacency makes sense for completeness, I guess.

  4. drammock commented on Feb 7, 2023

    @drammock
    MemberAuthor

    I would like to perform this task. Can you give me some directions?

    Find the docstring of permutation_*_test and spatio_temporal_*_test functions, and add to the adjacency parameter description cross-references to:

    • spatial_src_adjacency
    • spatio_temporal_src_adjacency
    • spatial_inter_hemi_adjacency

    (...with appropriate context for when each might be used)

  5. sawradip commented on Feb 16, 2023

    @sawradip
    Contributor

    I will be starting working on this, as #11469 is almost finished. I will have to go through the documentations a little, in order to understand the appropriate contexts for those functionalities.

    (...with appropriate context for when each might be used)

  6. added
    sprint-2023
    on Jul 5, 2023
  7. dominikwelke commented on Nov 15, 2023

    @dominikwelke
    Contributor

    working on this in #12212

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DOCEASYsprint-2023

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions