From bd28559e269b3787d85a871101907069011be0d2 Mon Sep 17 00:00:00 2001 From: Joaquin Matres <4514346+joamatab@users.noreply.github.com> Date: Tue, 17 Oct 2023 16:59:20 -0700 Subject: [PATCH] copy layerstack --- gplugins/meow/meow_eme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gplugins/meow/meow_eme.py b/gplugins/meow/meow_eme.py index 76dfaa46..d4d20483 100644 --- a/gplugins/meow/meow_eme.py +++ b/gplugins/meow/meow_eme.py @@ -149,7 +149,7 @@ def __init__( z_min, x_min, z_max, x_max = component.bbox.ravel() z_min, z_max = min(z_min, z_max) + 1e-10, max(z_min, z_max) - 1e-10 x_min, x_max = min(x_min, x_max) + 1e-10, max(x_min, x_max) - 1e-10 - layer_stack = layer_stack.model_dump() + layer_stack = layer_stack.model_copy() ys = list_unique_layer_stack_z(layer_stack) y_min, y_max = np.min(ys) + 1e-10, np.max(ys) - 1e-10