Skip to content

Commit 754ac0d

Browse files
committed
Hotfix for rasterization of label file when reading ML input data
1 parent d3c6808 commit 754ac0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eis_toolkit/prediction/machine_learning_general.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def _read_and_stack_feature_raster(filepath: Union[str, os.PathLike]) -> Tuple[n
184184

185185
# Labels/deposits in vector format
186186
if file_extension in [".shp", ".geojson", ".json", ".gpkg"]:
187-
y, _ = rasterize_vector(geodataframe=gpd.read_file(label_file), base_raster_profile=reference_profile)
187+
y = rasterize_vector(geodataframe=gpd.read_file(label_file), raster_profile=reference_profile)
188188

189189
# Labels/deposits in raster format
190190
else:

0 commit comments

Comments
 (0)