Skip to content
Snippets Groups Projects
Commit 50da14bf authored by Thomas Bock's avatar Thomas Bock :speech_balloon:
Browse files

from/to interval

parent af960b56
Branches
No related tags found
No related merge requests found
...@@ -90,6 +90,7 @@ class Anselm(System): ...@@ -90,6 +90,7 @@ class Anselm(System):
"fullscale/1000" :0.001, "fullscale/1000" :0.001,
"fullscale/10000" :0.0001, "fullscale/10000" :0.0001,
"fullscale/100000" :0.00001, "fullscale/100000" :0.00001,
"fullscale/1000000" :0.000001,
} }
self.db = DB() self.db = DB()
......
...@@ -591,7 +591,7 @@ def select_task(target_pressure, task_array): ...@@ -591,7 +591,7 @@ def select_task(target_pressure, task_array):
res = None res = None
for task in task_array: for task in task_array:
if 'From' in task and 'To' in task: if 'From' in task and 'To' in task:
if target_pressure >= task.get('From') and target_pressure <= task.get('To'): if target_pressure > task.get('From') and target_pressure <= task.get('To'):
res = task res = task
break break
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment