5bb91bfefafbf9cc643aa1a3c7c4d8fdfec46e56,ml_tools/eolearn/ml_tools/postprocessing.py,PostprocessingTask,execute,#PostprocessingTask#Any#,107

Before Change


         Execute method takes EOPatch and changes the specified feature
        

        if self.feature_name not in eopatch[self.feature_type]:
            raise ValueError("Unknown feature {}, {}".format(self.feature_type, self.feature_name))

        new_raster = self.process(eopatch.get_feature(self.feature_type, self.feature_name))

        eopatch.add_feature(self.feature_type, self.feature_name, new_raster)
        return eopatch

After Change


    def process(self, raster):
        raise NotImplementedError

    def execute(self, eopatch):
         Execute method takes EOPatch and changes the specified feature
        
        feature_type, feature_name = next(self.feature(eopatch))

        eopatch[feature_type][feature_name] = self.process(eopatch[feature_type][feature_name])

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: sentinel-hub/eo-learn
Commit Name: 5bb91bfefafbf9cc643aa1a3c7c4d8fdfec46e56
Time: 2018-08-08
Author: matej.aleksandrov@sinergise.com
File Name: ml_tools/eolearn/ml_tools/postprocessing.py
Class Name: PostprocessingTask
Method Name: execute


Project Name: sentinel-hub/eo-learn
Commit Name: bf49375b5f60b5668f874a2f704fa718735e2ded
Time: 2018-08-08
Author: matej.aleksandrov@sinergise.com
File Name: features/eolearn/features/interpolation.py
Class Name: InterpolationTask
Method Name: execute


Project Name: sentinel-hub/eo-learn
Commit Name: 5bb91bfefafbf9cc643aa1a3c7c4d8fdfec46e56
Time: 2018-08-08
Author: matej.aleksandrov@sinergise.com
File Name: ml_tools/eolearn/ml_tools/postprocessing.py
Class Name: PostprocessingTask
Method Name: execute


Project Name: sentinel-hub/eo-learn
Commit Name: 8b773d6e66c85e57b1ddba28d01b197b3b2e6e0b
Time: 2018-12-03
Author: devis.peressutti@sinergise.com
File Name: features/eolearn/features/radiometric_normalization.py
Class Name: ReferenceScenes
Method Name: execute