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

Add translation from NPZ to Terms #61

Merged
merged 2 commits into from
May 18, 2021
Merged

Conversation

frtibble
Copy link
Contributor

Adds a utility function terms_from_npz() to problem.py:

  • includes helper function is_valid_npz to check whether the supplied NPZ file's array names match the default or user-supplied namings
  • adds terms_from_npz which loads an NPZ file, reads in the data, and converts it to a list of Term (which can be added to a problem)
  • adds unit tests to test_problem.py, this tests the loading of qubo and pubo problems from an NPZ file and their translation into Terms

@frtibble
Copy link
Contributor Author

Hi @adelebai @vxfield - requesting your review when it's convenient, thank you!

@vxfield vxfield self-requested a review May 18, 2021 08:07
@vxfield
Copy link
Member

vxfield commented May 18, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

Copy link
Member

@vxfield vxfield left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@vxfield vxfield merged commit 85026cd into microsoft:main May 18, 2021
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