Add tool scripts #1

Merged
florent merged 7 commits from develop into master 2024-11-10 15:43:36 +01:00
Showing only changes of commit 95bdf3b724 - Show all commits

View File

@ -289,7 +289,7 @@ def _squash_position(voxel_grid, method, axis):
voxel_grid_where = list(xy_where)
voxel_grid_where.insert(axis%(len(voxel_grid_where)+1), squash_id.compressed())
raster = np.zeros_like(squash_id)
raster = np.zeros_like(squash_id, dtype=voxel_grid.dtype)
raster[xy_where] = voxel_grid[tuple(voxel_grid_where)]
return raster