dbe043dfa9e4b9c6f16406d2842208f7c75d26a9,io/eolearn/io/processing_api.py,SentinelHubInputTask,_extract_data,#SentinelHubInputTask#Any#Any#Any#,283

Before Change


        

        images = ((img["default.tif"], img["userdata.json"]) for img in images)
        images = [(img, meta.get("norm_factor", 0)) for img, meta in images]

        for f_type, f_name_src, f_name_dst in self.additional_data:
            eopatch[(f_type, f_name_dst)] = self._extract_additional_data(images, f_type, f_name_src, shape)

After Change


    def _extract_data(self, eopatch, images, shape):
         Extract data from the received images and assign them to eopatch features
        
        rtypes = [rtype for rtype in self.request_types if rtype.id != "bands"]
        itr_tifs = ((rtype, [img[rtype.id + ".tif"] for img in images], self.request_types[rtype]) for rtype in rtypes)

        for rtype, tifs, bands in itr_tifs:
            for band in bands:
                feature = rtype.feature_type, band
                eopatch[feature] = self._extract_array(tifs, bands.index(band), shape, rtype.np_dtype)

        if self.bands_feature:
            self._extract_bands_feature(eopatch, images, shape)

        return eopatch
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


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


Project Name: theislab/scanpy
Commit Name: d69aa1862f77db07d8aee64303fa6576701850af
Time: 2021-03-03
Author: ivirshup@gmail.com
File Name: scanpy/preprocessing/_simple.py
Class Name:
Method Name: regress_out


Project Name: keras-team/keras-preprocessing
Commit Name: 878a605a6418c8105ac4c9226945a18ce9e3bf57
Time: 2018-06-11
Author: yash.katariya10@gmail.com
File Name: keras_preprocessing/text.py
Class Name: Tokenizer
Method Name: fit_on_texts


Project Name: mynlp/ccg2lambda
Commit Name: 83e3c6a5607103193850086933b2c0e63f698366
Time: 2016-04-01
Author: pascual@nii.ac.jp
File Name: semantic_types.py
Class Name:
Method Name: merge_dynamic_libraries