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

Clarify/expand code of "Flow refining" docs #260

Merged
merged 2 commits into from
Dec 13, 2021

Conversation

randomir
Copy link
Member

Close #142.

docs/intro/using.rst Outdated Show resolved Hide resolved
@@ -151,6 +153,12 @@ with large numbers of variables.
hybrid.EnergyImpactDecomposer(size=50, rolling_history=0.15)
)

# Helper function to merge subsamples in place
def merge_substates(_, substates):
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the _, needed for here?

Copy link
Member Author

Choose a reason for hiding this comment

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

It means the first argument is irrelevant here (it's a reference to Lambda instance we don't use in the code).

@randomir randomir merged commit b9bf5d8 into dwavesystems:master Dec 13, 2021
@randomir randomir deleted the fix-intro-docs-code/issue-142 branch December 13, 2021 15:54
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.

Missing code for merge_substates in "Using the Framework" RTD
2 participants