Query-Filter error

Hello,
After the new update I got this error, even though I don’t use query in my code.
Any help to avoid this error?

Arwa
cc @aghandour

Hi Arwa,

Please can you share the rest of the code that you have run in your notebook? This will help us replicate the error and fix the issue for you :slight_smile: Thanks!

Hello @william.ray,

I guess the following cell might be causing the error reported by @arwa.atheel:

cloud_coverage_threshold = 0.05 

class ValidDataCoveragePredicate:
    
    def __init__(self, threshold):
        self.threshold = threshold
        
    def __call__(self, array):
        return calculate_coverage(array) < self.threshold
    
remove_cloudy_scenes = SimpleFilterTask((FeatureType.MASK, 'VALID_DATA'),
                                        ValidDataCoveragePredicate(cloud_coverage_threshold))

We are trying not to share the whole notebook since this is still a work in progress.
Thanks for your support William.

Ali
cc @arwa.atheel

Hi both, this issue should be fixed. Please update to the latest versions of both sentinelhub-py and eo-learn

If you still return the error then please let us know :slight_smile:

thank you @william.ray

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.