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

Legacy cleanup for 0.8.0 #388

Merged
merged 18 commits into from
Sep 18, 2020

Conversation

randomir
Copy link
Member

@randomir randomir commented Jul 3, 2020

This PR does several things, all under legacy-cleanup umbrella. We:

  • remove .dwrc config file support,
  • deprecate (publicly and loudly): Client.solvers(), Solver.is_{qpu,*}, Future.occurrences, "samples" and "occurrences" keys in Future.result(),
  • update BQM/fileview serialization, drop bqm-ref for ref, drop bq-zlib et al encoders,
  • introduce dwave.cloud.utils.aliasdict to enable dict key deprecation warnings,
  • change Future.result() return type from dict to the aliasdict subclass (should be a drop-in replacement, but heads-up).

I plan to release 0.8.0 soon after merging this, which will simplify work on #425, and then dwavesystems/dwave-system#317.

Closes #138.

@randomir randomir force-pushed the legacy-cleanup-for-0.8.0 branch from a55d58a to 569d527 Compare July 8, 2020 18:33
@randomir randomir force-pushed the legacy-cleanup-for-0.8.0 branch from 569d527 to dc57ba2 Compare July 23, 2020 13:41
@randomir randomir force-pushed the legacy-cleanup-for-0.8.0 branch from 302d105 to 76de3ba Compare August 11, 2020 10:49
@randomir randomir marked this pull request as ready for review September 4, 2020 11:53
dwave/cloud/coders.py Outdated Show resolved Hide resolved
dwave/cloud/coders.py Outdated Show resolved Hide resolved
dwave/cloud/coders.py Outdated Show resolved Hide resolved
dwave/cloud/coders.py Show resolved Hide resolved
dwave/cloud/utils.py Show resolved Hide resolved
@JoelPasvolsky
Copy link
Contributor

What about adding dwavesystems/dwave-ocean-sdk#74 to this legacy cleanup? It shouldn't add much work?

Copy link
Contributor

@JoelPasvolsky JoelPasvolsky left a comment

Choose a reason for hiding this comment

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

dwave/cloud/coders.py Show resolved Hide resolved
# This now the preferred way of BQM binary serialization.

# XXX: temporary implemented here, until something like
# dwavesystems/dimod#599 is available.
Copy link
Member

Choose a reason for hiding this comment

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

dwavesystems/dimod#599 linking the github issues

Copy link
Member

@arcondello arcondello left a comment

Choose a reason for hiding this comment

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

LGTM

@randomir randomir merged commit b4b004f into dwavesystems:master Sep 18, 2020
@randomir randomir deleted the legacy-cleanup-for-0.8.0 branch September 18, 2020 17:45
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.

Client.from_config() inconsistency for legacy .dwrc behavior
3 participants