From f2b5192c5743283a4f28a41fcd697d4514505e84 Mon Sep 17 00:00:00 2001 From: Chuck McCallum Date: Fri, 8 Nov 2024 11:20:12 -0500 Subject: [PATCH] move warning to bottom of list --- dp_creator_ii/app/analysis_panel.py | 42 ++++++++++++++++++----------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/dp_creator_ii/app/analysis_panel.py b/dp_creator_ii/app/analysis_panel.py index d63369f..6142454 100644 --- a/dp_creator_ii/app/analysis_panel.py +++ b/dp_creator_ii/app/analysis_panel.py @@ -25,17 +25,6 @@ def analysis_ui(): [], ), ui.output_ui("columns_ui"), - ui.layout_columns( - [], - [ - ui.markdown( - "This simulation assumes a normal distribution " - "between the specified lower and upper bounds. " - "Your data file has not been read except to determine the columns." - ) - ], - col_widths=col_widths, - ), ui.markdown( "What is your privacy budget for this release? " "Values above 1 will add less noise to the data, " @@ -123,10 +112,33 @@ def columns_ui(): ) return [ [ - ui.h3(column_ids_to_labels[column_id]), - column_ui(column_id), - ] - for column_id in column_ids + [ + ui.h3(column_ids_to_labels[column_id]), + column_ui(column_id), + ] + for column_id in column_ids + ], + [ + ( + ui.layout_columns( + [], + [ + ui.markdown( + """ + This simulation assumes a normal + distribution between the specified + lower and upper bounds. Your data + file has not been read except to + determine the columns. + """ + ) + ], + col_widths=col_widths, + ) + if column_ids + else [] + ) + ], ] @reactive.calc