f3a634bc7152604fef6fc0352a81bad6ce66910f,functions/MaskRaster.py,MaskRaster,updatePixels,#MaskRaster#Any#Any#Any#,32
Before Change
pixelBlocks["output_pixels"] = pixelBlocks["raster_pixels"]
m = pixelBlocks["mask_pixels"].astype("u1") > 0
outMask = np.zeros(shape, "u1")
np.putmask(outMask, m, 1)
pixelBlocks["output_mask"] = outMask
return pixelBlocks
After Change
def updatePixels(self, tlc, shape, props, **pixelBlocks):
pixelBlocks["output_pixels"] = pixelBlocks["r_pixels"].astype(props["pixelType"], copy=False)
m = pixelBlocks["m_pixels"].astype("u1", copy=False) > 0
pixelBlocks["output_mask"] = np.putmask(np.zeros(shape, "u1"), m, 1)
return pixelBlocks
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: Esri/raster-functions
Commit Name: f3a634bc7152604fef6fc0352a81bad6ce66910f
Time: 2015-03-02
Author: akferoz@esri.com
File Name: functions/MaskRaster.py
Class Name: MaskRaster
Method Name: updatePixels
Project Name: pandas-dev/pandas
Commit Name: 6b8cc988249836dd16825b8828a861f59d17e871
Time: 2021-02-03
Author: jbrockmendel@gmail.com
File Name: pandas/core/indexes/interval.py
Class Name: IntervalIndex
Method Name: putmask
Project Name: Esri/raster-functions
Commit Name: 8628727717190783e7673fa02fa70d38c92837b1
Time: 2016-02-01
Author: akferoz@esri.com
File Name: functions/MaskRaster.py
Class Name: MaskRaster
Method Name: updatePixels
Project Name: pandas-dev/pandas
Commit Name: fc92c6e24c5198cda056a542fa269c9a6c320b4d
Time: 2020-11-19
Author: jbrockmendel@gmail.com
File Name: pandas/core/indexes/extension.py
Class Name: NDArrayBackedExtensionIndex
Method Name: putmask