From d5b1009b8fa9fd0492e79667bab8fcb12435bb08 Mon Sep 17 00:00:00 2001 From: Pedro Sotorrio Date: Tue, 24 Sep 2024 16:16:39 -0700 Subject: [PATCH] setting maximum value for design size to the size of the candidate set minus 1 so users can't run USF, NUSF, or IRSF with a design size equal or greater than the candidate set size. --- foqus_lib/gui/sdoe/sdoeAnalysisDialog.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/foqus_lib/gui/sdoe/sdoeAnalysisDialog.py b/foqus_lib/gui/sdoe/sdoeAnalysisDialog.py index 573bc1f13..10855692d 100644 --- a/foqus_lib/gui/sdoe/sdoeAnalysisDialog.py +++ b/foqus_lib/gui/sdoe/sdoeAnalysisDialog.py @@ -178,10 +178,10 @@ def __init__( self.progress2_groupBox.setHidden(True) # spin box bounds - self.minDesignSize_spin.setMaximum(len(candidateData.getInputData())) - self.maxDesignSize_spin.setMaximum(len(candidateData.getInputData())) - self.designSize_spin.setMaximum(len(candidateData.getInputData())) - self.designSizeIRSF_spin.setMaximum(len(candidateData.getInputData())) + self.minDesignSize_spin.setMaximum(len(candidateData.getInputData()) - 1) + self.maxDesignSize_spin.setMaximum(len(candidateData.getInputData()) - 1) + self.designSize_spin.setMaximum(len(candidateData.getInputData()) - 1) + self.designSizeIRSF_spin.setMaximum(len(candidateData.getInputData()) - 1) self.ncand_samplesIRSF_spin.setRange(1, len(candidateData.getInputData())) self.ncand_samplesIRSF_spin.setValue( int(0.1 * len(candidateData.getInputData()))