From ea91ee5aba0060098a325f71680910c1e1e069e3 Mon Sep 17 00:00:00 2001 From: Carifio24 Date: Sun, 24 Dec 2023 16:51:08 +0000 Subject: [PATCH 1/2] Make sure that smoothing_iterations value is an int. Note that this is already fine at the QLineEdit level due to our validator. --- glue_ar/volume.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glue_ar/volume.py b/glue_ar/volume.py index 937ce2e..532167b 100644 --- a/glue_ar/volume.py +++ b/glue_ar/volume.py @@ -57,7 +57,7 @@ def meshes_for_volume_layer(viewer_state, layer_state, bounds, isodata = grid.contour([isomin]) if smoothing_iterations > 0: - isodata = isodata.smooth(n_iter=smoothing_iterations) + isodata = isodata.smooth(n_iter=int(smoothing_iterations)) return { "data": isodata, From 899e59ed57104beef00d2d8d91e4a29d33219e3d Mon Sep 17 00:00:00 2001 From: Carifio24 Date: Sun, 24 Dec 2023 16:51:22 +0000 Subject: [PATCH 2/2] Make Export button on dialog be the default selection. --- glue_ar/export_dialog.ui | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/glue_ar/export_dialog.ui b/glue_ar/export_dialog.ui index 5862f27..b382746 100644 --- a/glue_ar/export_dialog.ui +++ b/glue_ar/export_dialog.ui @@ -42,6 +42,9 @@ Cancel + + false + @@ -49,6 +52,9 @@ Export + + true +