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] Fixes Random Seed Help Text #281

Merged
merged 1 commit into from
May 3, 2019
Merged

[DOC] Fixes Random Seed Help Text #281

merged 1 commit into from
May 3, 2019

Conversation

jbteves
Copy link
Collaborator

@jbteves jbteves commented May 2, 2019

Closes #193 .

Changes proposed in this pull request:

  • Fixes random seed help text

@jbteves jbteves requested a review from emdupre May 2, 2019 01:32
@jbteves
Copy link
Collaborator Author

jbteves commented May 2, 2019

I know we like to leave good first issues open, but that one's been open for a while at this point. Can close if maintainers disagree.

@codecov
Copy link

codecov bot commented May 2, 2019

Codecov Report

Merging #281 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #281   +/-   ##
=======================================
  Coverage   46.16%   46.16%           
=======================================
  Files          35       35           
  Lines        2060     2060           
=======================================
  Hits          951      951           
  Misses       1109     1109
Impacted Files Coverage Δ
tedana/workflows/tedana.py 13.14% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a11275d...9c66682. Read the comment docs.

@@ -140,7 +140,7 @@ def _get_parser():
type=int,
help=('Value passed to repr(mdp.numx_rand.seed()) '
'Set to an integer value for reproducible ICA results; '
'otherwise, set to -1 for varying results across calls.'),
'otherwise, set to 42 for varying results across calls.'),
Copy link
Member

Choose a reason for hiding this comment

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

I think we actually want to say something like this

Suggested change
'otherwise, set to 42 for varying results across calls.'),
'otherwise, set to -1 for varying results across calls. '
'Default value is 42.'),

@emdupre
Copy link
Member

emdupre commented May 2, 2019

Thanks for addressing this ! One requested change and then I think this is good to merge 👍

@jbteves
Copy link
Collaborator Author

jbteves commented May 2, 2019

Hm, I decided to read through the other help texts to make sure it conforms with them; most others don't list a default. It shouldn't go on this PR, but should I open an issue to go ahead and add defaults to the other options as well?

@emdupre
Copy link
Member

emdupre commented May 2, 2019

I don't think we strongly need to list our defaults in the help text, since folks can usually access them from the function signature. But this is a bit of a special case, in my mind, since we've (already) confused folks as to what seed is generally used !

Happy to be argued that all arguments need defaults, but agree that's for another PR 😸

@@ -140,7 +140,7 @@ def _get_parser():
type=int,
help=('Value passed to repr(mdp.numx_rand.seed()) '
'Set to an integer value for reproducible ICA results; '
'otherwise, set to -1 for varying results across calls.'),
Copy link
Member

Choose a reason for hiding this comment

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

So sorry, I meant that the default should be given in addition to this note about the special meaning of -1. I think we need both pieces of information, here !

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, duh, that makes sense. Let me make Travis work some more.

@ME-ICA ME-ICA deleted a comment from codecov bot May 3, 2019
Copy link
Member

@emdupre emdupre 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, thanks again !

@jbteves jbteves merged commit 171bc31 into ME-ICA:master May 3, 2019
@jbteves jbteves deleted the JT_add_rseed_doc branch May 30, 2019 17:58
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.

Random Seed default does not match help text
2 participants