Skip to content

Conversation

@JoelPasvolsky
Copy link
Contributor

Refresh of samplers docstrings from a few small time windows over the last weeks. Changes to how the docs are generated/automation (e.g. PR-585 out of scope of this PR.

@codecov
Copy link

codecov bot commented Aug 19, 2025

Codecov Report

❌ Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.93%. Comparing base (1dff0a1) to head (ffd56c6).
⚠️ Report is 14 commits behind head on master.

Files with missing lines Patch % Lines
dwave/system/samplers/clique.py 0.00% 1 Missing ⚠️
dwave/system/samplers/dwave_sampler.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #589      +/-   ##
==========================================
- Coverage   89.38%   86.93%   -2.46%     
==========================================
  Files          22       22              
  Lines        1997     1997              
==========================================
- Hits         1785     1736      -49     
- Misses        212      261      +49     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@randomir randomir left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +223 to +224
Note: we need to partially replicate
:class:`dwave.cloud.Client.get_solver` logic.
Copy link
Member

Choose a reason for hiding this comment

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

What the purpose of this change? Line length was perfectly fine, even shorter then some around.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it was 91 characters and PEP8 says "it is okay to increase the line length limit up to 99 characters, provided that comments and docstrings are still wrapped at 72 characters"

Copy link
Member

Choose a reason for hiding this comment

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

Right, but our contributing guide says:

  • Use a consistent character limit of 100.

Comment on lines +905 to +906
The method blocks for all the currently scheduled work (sampling
requests) to finish.
Copy link
Member

Choose a reason for hiding this comment

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

Well, turns out this is not technically true anymore (see dwavesystems/dwave-cloud-client#712), but this PR is maybe not the right place to address that? Or is it?

Comment on lines +102 to +103
# scaling
inv_scalar = max(min_coupling_range / min_lim,
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure we ever explicitly said this in our contributing guide, but we generally try to avoid making such whitespace-only changes, as they affect git history for little to no benefit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If there are a lot of them, I try to do them all in a single commit. Do we want to just leave them?

Copy link
Member

Choose a reason for hiding this comment

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

I leave them, and "fix" as part of a bigger change of that line or block.

No need to revert this one, though.

Co-authored-by: Radomir Stevanovic <[email protected]>
@randomir randomir merged commit f106b65 into dwavesystems:master Aug 28, 2025
20 checks passed
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