Closed nkorinek closed 4 years ago
@lwasser we've decided against this in favor of using the axis object in conjunction with the new get_images()
function merged here: https://github.com/earthlab/matplotcheck/pull/193 . This can be closed unless we decide further functionality is needed.
Add a helper function to help
assert_image
in raster tester test multi-band rasters. The rasters need to be transposed and the data needs to be bytescaled when plotted withep.plot_rgb
. Thebytescale
is done withinep.plot_rgb
, and the transpotition is done bymatplotlib
. The current fix is to transform the example data usinges.bytescale(threebandimage).transpose([1, 2, 0])
. This could be added into a helper function to help with the assertion inassert_image
. @lwasser