Skip to content

Commit

Permalink
fix: return just column with new vals instead of inplace modification
Browse files Browse the repository at this point in the history
  • Loading branch information
AngRodrigues committed Jun 3, 2024
1 parent 55688fe commit 722b98c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion map2loop/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sample(
data = spatial_data.copy()
data["X"] = data.geometry.x
data["Y"] = data.geometry.y
map_data.get_value_from_raster_df(Datatype.DTM, data)
data["Z"] = map_data.get_value_from_raster_df(Datatype.DTM, data)["Z"]
data["layerID"] = geopandas.sjoin(
data, map_data.get_map_data(Datatype.GEOLOGY), how='left'
)['index_right']
Expand Down

0 comments on commit 722b98c

Please sign in to comment.