Skip to content

Commit

Permalink
setting maximum value for design size to the size of the candidate se…
Browse files Browse the repository at this point in the history
…t minus 1 so users can't run USF, NUSF, or IRSF with a design size equal or greater than the candidate set size. (#1244)

Co-authored-by: Keith Beattie <ksbeattie@lbl.gov>
  • Loading branch information
sotorrio1 and ksbeattie authored Oct 1, 2024
1 parent 2e54f98 commit 6e306a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions foqus_lib/gui/sdoe/sdoeAnalysisDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit 6e306a6

Please sign in to comment.