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 doctests post dwave.samplers switch #550

Merged

Conversation

randomir
Copy link
Member

@randomir randomir commented Dec 4, 2024

No description provided.

@@ -13,11 +13,11 @@ structured to represent variable ``a`` with a long chain.

>>> import networkx as nx
>>> import dimod
>>> import greedy
>>> import dwave.samplers
Copy link
Contributor

Choose a reason for hiding this comment

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

why not from dwave.samplers import SteepestDescentSampler ?

Copy link
Member Author

Choose a reason for hiding this comment

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

why import greedy and not from greedy import SteepestDescentSampler? 🙂

child_sampler (:class:`dimod.Sampler`):
A dimod sampler, such as a :class:`~dwave.system.samplers.DWaveSampler()`,
that has flux bias controls.
child_sampler (:class:`dimod.Sampler`):
Copy link
Contributor

Choose a reason for hiding this comment

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

thanks!

Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.61%. Comparing base (36af264) to head (6fd0b55).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #550      +/-   ##
==========================================
- Coverage   88.75%   85.61%   -3.15%     
==========================================
  Files          21       21              
  Lines        1654     1654              
==========================================
- Hits         1468     1416      -52     
- Misses        186      238      +52     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@randomir randomir merged commit 1bb84c6 into dwavesystems:master Dec 4, 2024
20 checks passed
@randomir randomir deleted the fix-doctests-post-dwave.samplers-switch branch December 4, 2024 20:26
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.

2 participants