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

Fix and tidy up ClusterNodeGenerator docstring #1516

Merged
merged 1 commit into from May 6, 2020
Merged

Fix and tidy up ClusterNodeGenerator docstring #1516

merged 1 commit into from May 6, 2020

Conversation

thatlittleboy
Copy link
Contributor

Attempts to resolve #1515

  • fix that q must be a int, not a float
  • added notes on the valid range for lam, and the specific criteria
    that q must divide into the number of clusters, which might otherwise
    be unclear/non-obvious to the end-user
  • added information on default values of each parameter
  • minor formatting fixes

- added notes on the valid range for `lam`, and the specific criteria
that `q` must divide into the number of clusters, which might otherwise
be unclear/non-obvious to the end-user
- added information on default values of each parameter
- minor formatting fixes
@codeclimate
Copy link

codeclimate bot commented May 5, 2020

Code Climate has analyzed commit 51917c7 and detected 0 issues on this pull request.

View more on Code Climate.

Copy link
Contributor

@kjun9 kjun9 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 for the fix!

Just FYI some context around putting the default value in the docstrings - we haven't been enforcing any particular rules around putting the default value of arguments as part of the docstring, since it does show up as part of method signature in the docs already:
image

And that will always be up to date, whereas the value in the docstring can get outdated by mistake.

@kjun9 kjun9 merged commit 4e70620 into stellargraph:develop May 6, 2020
@thatlittleboy thatlittleboy deleted the bugfix/tidy-cgn-docstring branch May 6, 2020 01: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.

ClusterNodeGenerator docstring specifies wrong type for q
2 participants