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] link terms to glossary #4038

Merged
merged 19 commits into from Oct 13, 2023
Merged

[DOC] link terms to glossary #4038

merged 19 commits into from Oct 13, 2023

Conversation

Remi-Gau
Copy link
Collaborator

@Remi-Gau Remi-Gau commented Oct 7, 2023

Changes proposed in this pull request:

  • add script to help the terms are properly linked
  • link terms to glossary in doc
  • link terms to glossary in example
  • link terms to glossary in doc string of public functions

@github-actions
Copy link
Contributor

github-actions bot commented Oct 7, 2023

👋 @Remi-Gau Thanks for creating a PR!

Until this PR is ready for review, you can include the [WIP] tag in its title, or leave it as a github draft.

Please make sure it is compliant with our contributing guidelines. In particular, be sure it checks the boxes listed below.

  • PR has an interpretable title.
  • PR links to Github issue with mention Closes #XXXX (see our documentation on PR structure)
  • Code is PEP8-compliant (see our documentation on coding style)
  • Changelog or what's new entry in doc/changes/latest.rst (see our documentation on PR structure)

For new features:

  • There is at least one unit test per new function / class (see our documentation on testing)
  • The new feature is demoed in at least one relevant example.

For bug fixes:

  • There is at least one test that would fail under the original bug conditions.

We will review it as quick as possible, feel free to ping us with questions if needed.

@codecov
Copy link

codecov bot commented Oct 7, 2023

Codecov Report

Merging #4038 (552d49a) into main (00fcbae) will not change coverage.
Report is 3 commits behind head on main.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #4038   +/-   ##
=======================================
  Coverage   91.56%   91.56%           
=======================================
  Files         143      143           
  Lines       16057    16057           
  Branches     3332     3332           
=======================================
  Hits        14703    14703           
  Misses        811      811           
  Partials      543      543           
Flag Coverage Δ
macos-latest_3.10 91.48% <ø> (ø)
macos-latest_3.11 91.48% <ø> (?)
macos-latest_3.12 91.48% <ø> (ø)
macos-latest_3.8 91.44% <ø> (ø)
macos-latest_3.9 91.45% <ø> (?)
ubuntu-latest_3.10 91.48% <ø> (ø)
ubuntu-latest_3.11 91.48% <ø> (ø)
ubuntu-latest_3.12 91.48% <ø> (?)
ubuntu-latest_3.8 91.44% <ø> (ø)
ubuntu-latest_3.9 91.45% <ø> (ø)
windows-latest_3.10 91.43% <ø> (ø)
windows-latest_3.11 91.43% <ø> (ø)
windows-latest_3.12 91.43% <ø> (?)
windows-latest_3.8 91.38% <ø> (ø)
windows-latest_3.9 91.39% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
nilearn/_utils/data_gen.py 95.52% <ø> (ø)
nilearn/_utils/docs.py 91.86% <ø> (ø)
nilearn/_utils/param_validation.py 100.00% <ø> (ø)
nilearn/connectome/connectivity_matrices.py 94.50% <ø> (ø)
nilearn/datasets/atlas.py 93.14% <ø> (ø)
nilearn/datasets/func.py 78.66% <ø> (ø)
nilearn/datasets/neurovault.py 90.49% <ø> (ø)
nilearn/datasets/struct.py 90.85% <ø> (ø)
nilearn/decoding/decoder.py 96.92% <ø> (ø)
nilearn/decoding/space_net.py 87.32% <ø> (ø)
... and 23 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Remi-Gau Remi-Gau marked this pull request as ready for review October 8, 2023 17:03
examples/02_decoding/plot_mixed_gambles_frem.py Outdated Show resolved Hide resolved
examples/04_glm_first_level/plot_first_level_details.py Outdated Show resolved Hide resolved
nilearn/datasets/func.py Outdated Show resolved Hide resolved
nilearn/datasets/func.py Outdated Show resolved Hide resolved
nilearn/datasets/neurovault.py Outdated Show resolved Hide resolved
examples/04_glm_first_level/plot_hrf.py Outdated Show resolved Hide resolved
@Remi-Gau
Copy link
Collaborator Author

Remi-Gau commented Oct 9, 2023

oh that's one funky list of merge conflicts

image

Remi-Gau and others added 3 commits October 9, 2023 23:09
Co-authored-by: Yasmin <63292494+ymzayek@users.noreply.github.com>
Co-authored-by: Yasmin <63292494+ymzayek@users.noreply.github.com>
Co-authored-by: Yasmin <63292494+ymzayek@users.noreply.github.com>
@Remi-Gau
Copy link
Collaborator Author

Remi-Gau commented Oct 9, 2023

And of course I messed that conflict resolution... Well... Will reset and try again...

Copy link
Member

@ymzayek ymzayek left a comment

Choose a reason for hiding this comment

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

Thanks for resolving that, I know it came from my PR :) LGTM!

@Remi-Gau
Copy link
Collaborator Author

Thanks for resolving that, I know it came from my PR :) LGTM!

Yeah I think I actually need to redo the merge conflict resolution.

@ymzayek
Copy link
Member

ymzayek commented Oct 10, 2023

Ah ok, the diff and merge look fine to me but given all the affected files it's hard to tell so I'll let you handle it

Copy link
Member

@bthirion bthirion left a comment

Choose a reason for hiding this comment

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

Looks great. Just outline a few occurrences that may have been forgotten.

doc/glm/glm_intro.rst Outdated Show resolved Hide resolved
@@ -141,7 +141,7 @@ i.e. values of ``z`` larger than the :math:`(1-\alpha)`-quantile of the standard
The first idea that one might think of is to take a much smaller :math:`\alpha`:
for instance, if we take, :math:`\alpha=\frac{0.05}{n\_voxels}`
then the expected number of false discoveries is only about 0.05, meaning
that there is a 5% chance that a truly inactive voxel is declared active.
that there is a 5% chance that a truly inactive :term:`voxel` is declared active.
Copy link
Member

Choose a reason for hiding this comment

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

Unsure whether we really need to track all occurrences of 'voxels' ;-)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Trust me: I left some out. 😉

doc/glm/second_level_model.rst Outdated Show resolved Hide resolved
examples/01_plotting/plot_overlay.py Show resolved Hide resolved
nilearn/_utils/data_gen.py Show resolved Hide resolved
nilearn/interfaces/bids/glm.py Outdated Show resolved Hide resolved
Copy link
Member

@bthirion bthirion left a comment

Choose a reason for hiding this comment

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

LGTM, thx.

Co-authored-by: bthirion <bertrand.thirion@inria.fr>
@Remi-Gau Remi-Gau merged commit b6f4ff0 into nilearn:main Oct 13, 2023
32 checks passed
@Remi-Gau Remi-Gau deleted the glossary branch October 13, 2023 10:22
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.

Add link to glossary terms in doc strings of public functions
3 participants