Closed nvoxland-al closed 3 months ago
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
50.0% Coverage on New Code
0.0% Duplication on New Code
Attention: Patch coverage is 50.00000% with 1 lines in your changes are missing coverage. Please review. |
Files | Patch % | Lines |
---|---|---|---|
deeplake/core/query/filter.py | 50.00% | 1 Missing :warning: |
:loudspeaker: Thoughts on this report? Let us know!
🚀 🚀 Pull Request
Impact
Description
When defining a filter like this:
if you forget the
()
inview = ds.filter(filter_fn())
your data is not filtered.This PR looks for that pattern and auto-calls the function for you.
Things to be aware of
It is still valid to call:
which doesn't annotate filter_fn and therefore should NOT have
()
on the value passed to ds.filter()Additional Context