Skip to content

Commit

Permalink
Add test for list of bands in read_geotif
Browse files Browse the repository at this point in the history
  • Loading branch information
k034b363 committed Aug 19, 2024
1 parent 3311657 commit b659a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_geospatial_read_geotif.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_geospatial_read_geotif_bad_input(test_data):
def test_geospatial_read_geotif_polygon_crop(test_data):
"""Test for plantcv-geospatial."""
# read in rgb image with a polygon-type shapefile
img = read_geotif(filename=test_data.rgb_tif, bands="R,G,B", cropto=test_data.square_crop)
img = read_geotif(filename=test_data.rgb_tif, bands=[650,560,480], cropto=test_data.square_crop)
assert img.pseudo_rgb.shape == (80, 83, 3)

def test_geospatial_read_geotif_point_crop(test_data):
Expand Down

0 comments on commit b659a08

Please sign in to comment.