Skip to content

Commit ca086fd

Browse files
committed
don't need py3.10 to use OT anymore in OpentronsTemperatureModuleBackend
1 parent 3425dbf commit ca086fd

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

pylabrobot/temperature_controlling/opentrons_backend.py

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
1-
import sys
21
from typing import cast
32

43
from pylabrobot.temperature_controlling.backend import (
54
TemperatureControllerBackend,
65
)
76

8-
PYTHON_VERSION = sys.version_info[:2]
7+
try:
8+
import ot_api
99

10-
if PYTHON_VERSION == (3, 10):
11-
try:
12-
import ot_api
13-
14-
USE_OT = True
15-
except ImportError as e:
16-
USE_OT = False
17-
_OT_IMPORT_ERROR = e
18-
else:
10+
USE_OT = True
11+
except ImportError as e:
1912
USE_OT = False
13+
_OT_IMPORT_ERROR = e
2014

2115

2216
class OpentronsTemperatureModuleBackend(TemperatureControllerBackend):

0 commit comments

Comments
 (0)