9574ca11461a7674e724d78b507852022fb2c59f,io/eolearn/io/processing_api.py,SentinelHubProcessingInput,execute,#SentinelHubProcessingInput#Any#,100

Before Change



        if "dataMask" in self.bands:
            is_data_arrays = [img[..., -1:] for img, norm_factor in images]
            eopatch[(FeatureType.MASK, "IS_DATA")] = np.asarray(is_data_arrays).reshape(*shape, 1).astype(np.bool)

        img_bands = len(self.bands) - 1 if "dataMask" in self.bands else len(self.bands)
        img_arrays = [img[..., slice(img_bands)] * norm_factor for img, norm_factor in images]
        eopatch[(FeatureType.DATA, self.feature_name)] = np.asarray(img_arrays).reshape(*shape, img_bands)

After Change


        request_list = [DownloadRequest(post_values=payload, **args) for payload in payloads]

        LOGGER.debug("Downloading %d requests of type %s", len(request_list), str(self.data_source))
        LOGGER.debug("Downloading bands: [%s]", ", ".join(self.all_bands))
        client = SentinelHubDownloadClient()
        images = client.download_data(request_list)
        LOGGER.debug("Downloads complete")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: sentinel-hub/eo-learn
Commit Name: 9574ca11461a7674e724d78b507852022fb2c59f
Time: 2019-11-06
Author: jovan.visnjic@sinergise.com
File Name: io/eolearn/io/processing_api.py
Class Name: SentinelHubProcessingInput
Method Name: execute


Project Name: mil-tokyo/webdnn
Commit Name: 892011b0b264d026d2fdb439580d82de393b5270
Time: 2017-04-21
Author: hidaka@mi.t.u-tokyo.ac.jp
File Name: example/convert_resnet/convert_resnet.py
Class Name:
Method Name: main


Project Name: ClementPinard/SfmLearner-Pytorch
Commit Name: ba0b828ee9db1689ba0a1de62c0b88918c2a5056
Time: 2020-04-13
Author: anon@ymo.us
File Name: run_inference.py
Class Name:
Method Name: main