Skip to content

Add aspect selector #558

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

Merged

Conversation

vlad-perevezentsev
Copy link
Collaborator

This PR adds the device selection function by aspects and tests to it.

Docstrings will be added in the next commit.

vlad-perevezentsev and others added 2 commits August 31, 2021 08:16
1. Added docstring
2. Rename arguments from "aspect_list", "deny_list" to
   "required_aspects", "excluded_aspects"
3. Permit aspects to be gives as Python sequences
4. If unsupported aspect is specified, AttributeError is raised
   as opposed to ValueError
5. ValueError is raised of the requested device is not available.

6. Tests were modified to account for possibility that function
   invocation may raise ValueError
7. Test was added to test that ValueError error is raised when
   impossible configuration is requested, like when
   required_aspects and excluded_aspects sets intersect.
@coveralls
Copy link
Collaborator

coveralls commented Sep 1, 2021

Coverage Status

Coverage increased (+0.3%) to 66.963% when pulling 5c57730 on vlad-perevezentsev:aspect_selector into 33031a2 on IntelPython:master.

@oleksandr-pavlyk
Copy link
Contributor

I think this is ready to go in.

@oleksandr-pavlyk oleksandr-pavlyk merged commit c88ed14 into IntelPython:master Sep 1, 2021
@vlad-perevezentsev vlad-perevezentsev deleted the aspect_selector branch June 20, 2023 10:53
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.

3 participants