Skip to content

Commit c934efd

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/master' into release_0.1.2
2 parents 6e24015 + e139df9 commit c934efd

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

cdprep/gapfill_data/gapfill_weather_gui.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ def _create_station_selection_criteria(self):
195195
Nmax_label = QLabel('Nbr. of stations :')
196196
self.Nmax = QSpinBox()
197197
self.Nmax.setRange(0, 99)
198+
self.Nmax.setMinimum(1)
198199
self.Nmax.setValue(CONF.get('gapfill_data', 'nbr_of_station', 4))
199200
self.Nmax.setAlignment(Qt.AlignCenter)
200201

cdprep/gapfill_data/tests/test_gapfill_weather_gui.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ def datagapfiller(qtbot, mocker, conf):
6666
qtbot.addWidget(datagapfiller)
6767
datagapfiller.show()
6868
qtbot.waitForWindowShown(datagapfiller)
69+
70+
assert datagapfiller.Nmax.minimum() == 1
71+
6972
return datagapfiller
7073

7174

0 commit comments

Comments
 (0)