dwavesystems / dwave-cloud-client

A minimal implementation of the REST interface used to communicate with D-Wave Solver API (SAPI) servers.
https://docs.ocean.dwavesys.com/projects/cloud-client/en/stable/
Apache License 2.0
59 stars 40 forks source link

Improve check_problem #488

Closed randomir closed 2 years ago

randomir commented 2 years ago

Implements 15-20% speed-up of StructuredSolver.check_problem() and a new exception that DWaveSampler can use to skip (the duplicated) problem check.

Close #487.

codecov-commenter commented 2 years ago

Codecov Report

Merging #488 (d560832) into master (ba57577) will increase coverage by 0.05%. The diff coverage is 75.00%.

:exclamation: Current head d560832 differs from pull request most recent head a2fa76d. Consider uploading reports for the commit a2fa76d to get more accurate results Impacted file tree graph

@@            Coverage Diff             @@
##           master     #488      +/-   ##
==========================================
+ Coverage   85.62%   85.67%   +0.05%     
==========================================
  Files          24       24              
  Lines        3081     3078       -3     
==========================================
- Hits         2638     2637       -1     
+ Misses        443      441       -2     
Impacted Files Coverage Δ
dwave/cloud/solver.py 81.74% <71.42%> (+0.47%) :arrow_up:
dwave/cloud/exceptions.py 100.00% <100.00%> (ø)

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 ba57577...a2fa76d. Read the comment docs.