Skip to content

Commit

Permalink
fix flatten
Browse files Browse the repository at this point in the history
  • Loading branch information
joamatab committed Jan 1, 2025
1 parent baa94b7 commit 0b2d856
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gplugins/common/utils/get_component_with_local_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def get_component_with_local_layers(
precision: of the boolean operations.
"""
# Initialize returned component and layerstack
local_component = component.flatten()
local_component = component.copy()
local_component.flatten()
local_layer_stack = layer_stack.model_copy()

for mapping in mappings:
Expand Down

0 comments on commit 0b2d856

Please sign in to comment.