Skip to content

Commit

Permalink
Issue #663 todo filter_to_bands does not change cube dtype
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenVerstraelen committed Mar 4, 2024
1 parent 69f14c0 commit 9aad10d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_vectorcube.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def test_vector_to_raster(imagecollection_with_two_bands_and_one_date):
geojson = json.load(f)
target_raster_cube = imagecollection_with_two_bands_and_one_date

input_vector_cube = DriverVectorCube.from_geojson(geojson, columns_for_cube = DriverVectorCube.COLUMN_SELECTION_ALL)
input_vector_cube = input_vector_cube.filter_bands(bands=["pop"])
input_vector_cube = DriverVectorCube.from_geojson(geojson, columns_for_cube = DriverVectorCube.COLUMN_SELECTION_NUMERICAL)
# input_vector_cube = input_vector_cube.filter_bands(bands=["pop"]) TODO: filter_bands does not change dtype.
input_cube = input_vector_cube.get_cube()
assert(input_cube.shape == (2,1))
assert(input_cube.dims == ('geometry', 'properties'))
Expand Down

0 comments on commit 9aad10d

Please sign in to comment.