IliaLarchenko
commited on
Commit
•
9826c29
1
Parent(s):
82d56fb
refactoring
Browse files- src/control.py +3 -1
src/control.py
CHANGED
@@ -30,7 +30,9 @@ def select_several_ints(
|
|
30 |
|
31 |
def select_min_max(param_name, limits_list, defaults_list, min_diff=0, **kwargs):
|
32 |
assert len(param_name) == 2
|
33 |
-
result = list(
|
|
|
|
|
34 |
if result[1] - result[0] < min_diff:
|
35 |
diff = min_diff - result[1] + result[0]
|
36 |
if result[1] + diff <= limits_list[1]:
|
|
|
30 |
|
31 |
def select_min_max(param_name, limits_list, defaults_list, min_diff=0, **kwargs):
|
32 |
assert len(param_name) == 2
|
33 |
+
result = list(
|
34 |
+
select_int_interval(" & ".join(param_name), limits_list, defaults_list)
|
35 |
+
)
|
36 |
if result[1] - result[0] < min_diff:
|
37 |
diff = min_diff - result[1] + result[0]
|
38 |
if result[1] + diff <= limits_list[1]:
|