Skip to content

Commit

Permalink
replaced copy by deepcopy so that aggregate_to_cells does not get cha…
Browse files Browse the repository at this point in the history
…nged in the canvas
  • Loading branch information
amboschman committed Nov 27, 2024
1 parent 432891a commit 6a60233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aggregates_bounding_boxes_tools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function setup_agg_cells_to_aggregate(aggregate_to_cells)
end

function setup_aggregate_to_local_cells(aggregate_to_cells)
aggregate_to_local_cells=copy(aggregate_to_cells)
aggregate_to_local_cells=deepcopy(aggregate_to_cells)
current_local_cell=1
for (i,cells) in enumerate(aggregate_to_local_cells)
for j in 1:length(cells)
Expand Down

0 comments on commit 6a60233

Please sign in to comment.