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.
  • Loading branch information
sotorrio1 committed Sep 24, 2024
1 parent 0db11e9 commit d5b1009
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 d5b1009

Please sign in to comment.