Skip to content

Commit c1e44a5

Browse files
committed
Merge pull request #12 from mapbox/blob-mcqueen
slight tweak in masked compare
2 parents 0c5baa9 + 63df38a commit c1e44a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

raster_tester/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ def compare(srcpath1, srcpath2, max_px_diff=0, upsample=1, downsample=1, compare
131131
band2 = band2.astype(np.int16)
132132

133133
if compare_masked and src1.count == 4:
134-
band1[masked_1 == 0] = 0
135-
band2[masked_2 == 0] = 0
134+
band1[masked_1 != 255] = 0
135+
band2[masked_2 != 255] = 0
136136

137137
if upsample > 1:
138138
toAff, frAff = affaux(upsample)

0 commit comments

Comments
 (0)