Skip to content

Fix/api change compatibility#60

Open
jackraymond wants to merge 10 commits into
dwavesystems:mainfrom
jackraymond:fix/api_change_compatibility
Open

Fix/api change compatibility#60
jackraymond wants to merge 10 commits into
dwavesystems:mainfrom
jackraymond:fix/api_change_compatibility

Conversation

@jackraymond

Copy link
Copy Markdown
Contributor

Examples and tests are updated to fix breakages caused by changes to the get_properties return format.

Defaults are modified to accommodate the change from Advantage2_research1 to Advantage2_research2.

This pull request contains a subset of changes in #51.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.30%. Comparing base (5a918fa) to head (c2ec35d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #60   +/-   ##
=======================================
  Coverage   94.30%   94.30%           
=======================================
  Files          15       15           
  Lines        1141     1141           
=======================================
  Hits         1076     1076           
  Misses         65       65           

☔ View full report in Codecov by Harness.
📢 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.

@thisac thisac left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. I noticed that there's some coverage missing for the mca tests, but this might be better addressed separately (specifically exceptions aren't being tested + some edge cases).

Args:
delays: time of measurement
A: frequency
decay_time: exponential envelope time scale

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Need to update this as well.

@randomir randomir left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm OK with merging this, but we should improve the return format of mca.get_properties() in a follow-up PR.

Returning a list of unrelated items (as SAPI does now) is really not ideal.

Opened #61.

Comment on lines +4 to +5
Update examples, tests and utils to accommodate modified get_properties
return format.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you also please update the get_properties() (return type, docs) to reflect the new format returned by the server?

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.

4 participants