988511e4b99566a85f57cdc67cd1286362c0783d,rastervision_core/rastervision/core/data/raster_source/rasterio_source.py,RasterioSource,_get_chip,#RasterioSource#Any#,178

Before Change


        if self.image_dataset is None:
            raise ActivationError("RasterSource must be activated before use")
        shifted_window = self._get_shifted_window(window)
        return load_window(
            self.image_dataset,
            window=shifted_window.rasterio_format(),
            is_masked=self.is_masked)

    def _activate(self):
        // Download images to temporary directory and delete them when done.
        self.image_tmp_dir = tempfile.TemporaryDirectory(dir=self.tmp_dir)

After Change


            self.image_dataset,
            window=shifted_window.rasterio_format(),
            is_masked=self.is_masked)
        if self.extent_crop is not None:
            chip = fill_overflow(self.get_extent(), window, chip)
        return chip

    def _activate(self):
        // Download images to temporary directory and delete them when done.
        self.image_tmp_dir = tempfile.TemporaryDirectory(dir=self.tmp_dir)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: azavea/raster-vision
Commit Name: 988511e4b99566a85f57cdc67cd1286362c0783d
Time: 2021-01-25
Author: adeel.hassan93@gmail.com
File Name: rastervision_core/rastervision/core/data/raster_source/rasterio_source.py
Class Name: RasterioSource
Method Name: _get_chip


Project Name: bokeh/bokeh
Commit Name: 0cb34cc6edb3bf4f0848de96c3719da02128f7e9
Time: 2015-09-05
Author: nroth@dealnews.com
File Name: bokeh/charts/glyphs.py
Class Name: BoxGlyph
Method Name: y_min


Project Name: bokeh/bokeh
Commit Name: 0cb34cc6edb3bf4f0848de96c3719da02128f7e9
Time: 2015-09-05
Author: nroth@dealnews.com
File Name: bokeh/charts/glyphs.py
Class Name: BoxGlyph
Method Name: y_max