Skip to content

Commit 5864c8b

Browse files
committed
PR #200 some final clean up
1 parent bc7733e commit 5864c8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openeo_driver/datacube.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ class DriverVectorCube:
218218
DIM_GEOMETRIES = "geometries"
219219
DIM_BANDS = "bands"
220220
DIM_PROPERTIES = "properties"
221-
FLATTEN_PREFIX = "vc"
222221
COLUMN_SELECTION_ALL = "all"
223222
COLUMN_SELECTION_NUMERICAL = "numerical"
224223

@@ -414,7 +413,8 @@ def _as_geopandas_df(
414413
# TODO: avoid column collisions?
415414
df[name] = stacked.sel(prop=p)
416415
else:
417-
df[flatten_prefix or self.FLATTEN_PREFIX] = self._cube
416+
# TODO: better fallback column/property name in this case?
417+
df[flatten_prefix or "_vc"] = self._cube
418418

419419
return df
420420

0 commit comments

Comments
 (0)