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 Filtering via User-Provided Python Functions #1230

Merged
merged 6 commits into from
Dec 19, 2023

Conversation

vinnamkim
Copy link
Contributor

@vinnamkim vinnamkim commented Dec 18, 2023

Summary

How to test

Added some unit tests as well.

Checklist

  • I have added unit tests to cover my changes.​
  • I have added integration tests to cover my changes.​
  • I have added the description of my changes into CHANGELOG.​
  • I have updated the documentation accordingly

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below).
# Copyright (C) 2023 Intel Corporation
#
# SPDX-License-Identifier: MIT

Signed-off-by: Kim, Vinnam <vinnam.kim@intel.com>
Signed-off-by: Kim, Vinnam <vinnam.kim@intel.com>
Signed-off-by: Kim, Vinnam <vinnam.kim@intel.com>
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@vinnamkim vinnamkim changed the title Add Feature: Filtering via User-Provided Python Functions Add Filtering via User-Provided Python Functions Dec 18, 2023
Signed-off-by: Kim, Vinnam <vinnam.kim@intel.com>
@vinnamkim vinnamkim marked this pull request as ready for review December 18, 2023 11:00
@vinnamkim vinnamkim requested review from a team as code owners December 18, 2023 11:00
@vinnamkim vinnamkim requested review from jihyeonyi and removed request for a team December 18, 2023 11:00
@vinnamkim vinnamkim added the FEATURE New feature & functionality label Dec 18, 2023
@vinnamkim vinnamkim added this to the 1.6.0 milestone Dec 18, 2023
Signed-off-by: Kim, Vinnam <vinnam.kim@intel.com>
Signed-off-by: Kim, Vinnam <vinnam.kim@intel.com>
Copy link

codecov bot commented Dec 18, 2023

Codecov Report

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

Comparison is base (4c96422) 80.46% compared to head (72a3e44) 80.48%.
Report is 1 commits behind head on develop.

Files Patch % Lines
src/datumaro/components/filter.py 88.67% 6 Missing ⚠️
src/datumaro/components/dataset.py 73.68% 4 Missing and 1 partial ⚠️
src/datumaro/components/hl_ops/__init__.py 83.33% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1230      +/-   ##
===========================================
+ Coverage    80.46%   80.48%   +0.01%     
===========================================
  Files          269      269              
  Lines        29924    29985      +61     
  Branches      5853     5856       +3     
===========================================
+ Hits         24079    24133      +54     
- Misses        4484     4489       +5     
- Partials      1361     1363       +2     
Flag Coverage Δ
macos-11_Python-3.8 79.13% <84.61%> (+<0.01%) ⬆️
ubuntu-20.04_Python-3.8 80.46% <84.61%> (+<0.01%) ⬆️
windows-2022_Python-3.8 80.45% <84.61%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Contributor

@jihyeonyi jihyeonyi left a comment

Choose a reason for hiding this comment

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

LGTM

@vinnamkim vinnamkim merged commit cce5fc9 into openvinotoolkit:develop Dec 19, 2023
6 checks passed
@vinnamkim vinnamkim deleted the add-custom-filter branch December 19, 2023 04:48
@vinnamkim vinnamkim mentioned this pull request Jan 2, 2024
6 tasks
vinnamkim added a commit that referenced this pull request Jan 2, 2024
### Summary

- This is a left-over from
#1230

### How to test
<!-- Describe the testing procedure for reviewers, if changes are
not fully covered by unit tests or manual testing can be complicated.
-->

### Checklist
<!-- Put an 'x' in all the boxes that apply -->
- [ ] I have added unit tests to cover my changes.​
- [ ] I have added integration tests to cover my changes.​
- [x] I have added the description of my changes into
[CHANGELOG](https://github.com/openvinotoolkit/datumaro/blob/develop/CHANGELOG.md).​
- [x] I have updated the
[documentation](https://github.com/openvinotoolkit/datumaro/tree/develop/docs)
accordingly

### License

- [x] I submit _my code changes_ under the same [MIT
License](https://github.com/openvinotoolkit/datumaro/blob/develop/LICENSE)
that covers the project.
  Feel free to contact the maintainers if that's a concern.
- [x] I have updated the license header for each file (see an example
below).

```python
# Copyright (C) 2023 Intel Corporation
#
# SPDX-License-Identifier: MIT
```

---------

Signed-off-by: Kim, Vinnam <vinnam.kim@intel.com>
@yunchu yunchu modified the milestones: 1.6.0, 2.0.0 Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FEATURE New feature & functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants