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 filters and setup pairwise generator #8

Merged
merged 6 commits into from
Feb 7, 2024

Conversation

SimeonEhrig
Copy link
Member

@SimeonEhrig SimeonEhrig commented Feb 1, 2024

The PR is complex, because it integrates the key component of the library, the pair-wise generator. During the work in the PR, I found a bug in the allpairspy library, which causes that not all valid pairs are generated, if filter functions are used.
Therefore I switched to the covertable library.

The PR contains following changes:

  • uses the covertable library to create the combination-list
  • add filter function chain with empty functions
  • change the type of ParamterValueTuple to a named tuple
  • introduce type ParamterValueSingle
  • add helper functions to remove ParamterValueTuple from a list of expected parameter value pairs
  • add list of supported software versions

- add empty filters
@codecov-commenter
Copy link

codecov-commenter commented Feb 1, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (763ec06) 92.30% compared to head (aa79c22) 95.00%.

Files Patch % Lines
bashi/utils.py 92.59% 1 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #8      +/-   ##
==========================================
+ Coverage   92.30%   95.00%   +2.69%     
==========================================
  Files           5       10       +5     
  Lines          91      200     +109     
  Branches       14       42      +28     
==========================================
+ Hits           84      190     +106     
  Misses          6        6              
- Partials        1        4       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- introduce new type ParameterValueSingle
- add option to remove_parameter_value_pair() remove all pairs only by given name independent of the version number
- Both library provides an pair-wise generator algorithm.
- There is a know bug in the allpairspy library, which causes that not all valid parameter-value-pairs are generated, if filter rules are used. The bug exists since two years.
@SimeonEhrig SimeonEhrig marked this pull request as ready for review February 7, 2024 13:25
@SimeonEhrig SimeonEhrig merged commit 47e1bf6 into alpaka-group:main Feb 7, 2024
5 checks passed
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