Skip to content

Commit

Permalink
Revert "normalize band names in AggregatePolygonSpatialresult Open-EO…
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenVerstraelen committed Mar 7, 2024
1 parent 74dd0a0 commit faeb345
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions openeo_driver/save_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,8 +818,6 @@ def _get_geodataframe(self) -> gpd.GeoDataFrame:
gdf["feature_index"] = gdf.index
stats: pd.DataFrame = pd.read_csv(self._csv_path())
gdf = gdf.join(stats.set_index("feature_index"), on="feature_index")
# Convert e.g. avg(band_0) to avg_band_0_
gdf = gdf.rename(columns=lambda col_name: re.sub(r"\W", "_", col_name))
return gdf.drop(columns=["feature_index"])

def to_driver_vector_cube(self) -> DriverVectorCube:
Expand Down

0 comments on commit faeb345

Please sign in to comment.