c43c84a6373d198635d76549ba699cef4027f3ab,io/eolearn/io/processing_api.py,SentinelHubInputTask,__init__,#SentinelHubInputTask#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,156

Before Change


        elif bands_feature is not None:
            self.bands = data_source.bands()
        else:
            self.bands = []

        if additional_data is None:
            self.additional_data = []
        else:
            self.additional_data = list(self._parse_features(additional_data, new_names=True)())

        self.all_bands = self.bands + [f_name for _, f_name, _ in self.additional_data]

        self.request_types = {
            api_type: [band for band in self.all_bands if band in self.API_BANDS[api_type]]
            for api_type in self.API_BANDS
        }

        self.request_types = {api_type: bands for api_type, bands in self.request_types.items() if bands}

    def generate_evalscript(self):

After Change


        if bands_feature:
            self.bands_feature = next(self._parse_features(bands_feature, allowed_feature_types=[FeatureType.DATA])())
            bands = bands or data_source.bands()
            requested_bands.extend(bands)

        if additional_data is not None:
            additional_features = list(self._parse_features(additional_data, new_names=True)())
            requested_bands.extend(band for ftype, band, new_name in additional_features)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: sentinel-hub/eo-learn
Commit Name: c43c84a6373d198635d76549ba699cef4027f3ab
Time: 2020-02-04
Author: jovan.visnjic@sinergise.com
File Name: io/eolearn/io/processing_api.py
Class Name: SentinelHubInputTask
Method Name: __init__


Project Name: merenlab/anvio
Commit Name: a4ae2ed59b462235191a627e846c28f6918eb6f5
Time: 2020-02-26
Author: kiefl.evan@gmail.com
File Name: anvio/profiler.py
Class Name: BAMProfiler
Method Name: populate_gene_info_for_splits


Project Name: markovmodel/PyEMMA
Commit Name: d58f782c5ed1e6e21035ec23012b54720f293503
Time: 2017-12-19
Author: m.scherer@fu-berlin.de
File Name: pyemma/_base/estimator.py
Class Name: Estimator
Method Name: __my_setstate__