Skip to content

Commit

Permalink
Merge pull request #12 from mapbox/blob-mcqueen
Browse files Browse the repository at this point in the history
slight tweak in masked compare
  • Loading branch information
dnomadb committed Nov 12, 2015
2 parents 0c5baa9 + 63df38a commit c1e44a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raster_tester/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ def compare(srcpath1, srcpath2, max_px_diff=0, upsample=1, downsample=1, compare
band2 = band2.astype(np.int16)

if compare_masked and src1.count == 4:
band1[masked_1 == 0] = 0
band2[masked_2 == 0] = 0
band1[masked_1 != 255] = 0
band2[masked_2 != 255] = 0

if upsample > 1:
toAff, frAff = affaux(upsample)
Expand Down

0 comments on commit c1e44a5

Please sign in to comment.