d29d0c240d88c351e5b8b0e81d76c5ef2be2bd9b,functions/ZonalRemap.py,ZonalRemap,updatePixels,#ZonalRemap#Any#Any#Any#,165
Before Change
// if zonal threshold table is defined:
// - request dictionary for IDs not previously seen
// - update ztMap
if self.ztTable and len(zoneIds):
self.ztMap = self.ztTable.query(idList=zoneIds,
where=self.whereClause,
extent=props["extent"],
sr=props["spatialReference"])
self.trace.log("Trace|ZonalRemap.updatePixels|ZoneID:{0}|ZT-Map{1}|\n".format(
str(zoneIds), str(self.ztMap)))
// output pixels initialized to background color
p = np.full(v.shape, self.background, dtype=props["pixelType"])
// use zonal thresholds to update output pixels...
if self.ztMap is not None and len(self.ztMap.keys()):
After Change
continue
for t in T:
I = (z == k) if z is not None else np.ones(v.shape, dtype=bool)
if t[0] and t[1]: // min and max are both available
I = I & (v > t[0]) & (v < t[1])
elif t[0]:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: Esri/raster-functions
Commit Name: d29d0c240d88c351e5b8b0e81d76c5ef2be2bd9b
Time: 2016-02-05
Author: akferoz@esri.com
File Name: functions/ZonalRemap.py
Class Name: ZonalRemap
Method Name: updatePixels
Project Name: EpistasisLab/tpot
Commit Name: 2ab8c1444facbd46df8767a5badda5b9f1a50c29
Time: 2016-08-01
Author: supacoofoo@gmail.com
File Name: tpot/tpot.py
Class Name: TPOT
Method Name: predict
Project Name: EpistasisLab/tpot
Commit Name: 2ab8c1444facbd46df8767a5badda5b9f1a50c29
Time: 2016-08-01
Author: supacoofoo@gmail.com
File Name: tests.py
Class Name:
Method Name: