Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] Update docstrings for null models #62

Merged
merged 3 commits into from
Jul 25, 2022

Conversation

VinceBaz
Copy link
Member

  • This Pull Request updates the dosctrings of the null model functions. More
    specifically, the docstrings for the burt2018, burt2020 and moran null
    models now specify that data can be either a Gifti or a Nifti file (and
    not niimg_like only). The docstrings also specify that the atlas for these
    three models can also be volumetric (i.e. mni152).

  • The nifti file for the 2009cAsym 1mm brain mask appeared to be
    corrupted (it could not be loaded). I hence re-uploaded the file on
    OSF, and updated the osf.json file accordingly

- This commit updates the dosctrings of the null model functions. More
specifically, the docstrings for the burt2018, burt2020 and moran null
models now specify that data can be either a Gifti or a Nifti file (and
not niimg_like only). The docstrings also specify that the atlas for these
three models can also be volumetric (i.e. mni152).

- The nifti file for the 2009cAsym 1mm brain mask appeared to be
  corrupted (it could not be loaded). I hence re-uploaded the file on
  OSF, and updated the osf.json file accordingly
This is another update to the docstrings of the null model functions. I
added the `data_or_none_surface` entry in the _null_input_docs, which
describe the available types of the data parameter in the
`alexander_bloch` function.
@VinceBaz VinceBaz changed the title Fix docstrings [DOC] Update docstrings for null models Apr 27, 2022
We introduce new "names" for specific parameter types. Perhaps they
could be implemented in the rest of the documentation later on?
We use `path-like` to describe `str` or `os.PathLike` as objects pointing
to an image file, `giimg-like` to describe surface-based images (e.g.
`nib.GiftiImage`) and `niimg-like` to describe volumetric images (e.g.
`nib.Nifti1Image`).
@VinceBaz VinceBaz merged commit 614a3d5 into netneurolab:main Jul 25, 2022
github-actions bot pushed a commit that referenced this pull request Jul 25, 2022
[DOC] Update docstrings for null models 614a3d5
github-actions bot pushed a commit to liuzhenqi77/neuromaps that referenced this pull request Jul 26, 2022
@VinceBaz VinceBaz deleted the fix-docstrings branch August 1, 2022 20:18
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.

1 participant