Skip to content

Commit 62baead

Browse files
committed
fix star backend init async
1 parent 04dc037 commit 62baead

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

pylabrobot/liquid_handling/backends/hamilton/STAR_backend.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,19 +1383,19 @@ async def setup(
13831383

13841384
await self.pre_initialize_instrument()
13851385

1386-
async def pip():
1386+
async def set_up_pip():
13871387
if not initialized or any(tip_presences):
13881388
await self.initialize_pip()
13891389

1390-
async def autoload():
1390+
async def set_up_autoload():
13911391
if self.autoload_installed and not skip_autoload:
13921392
autoload_initialized = await self.request_autoload_initialization_status()
13931393
if not autoload_initialized:
13941394
await self.initialize_autoload()
13951395

13961396
await self.park_autoload()
13971397

1398-
async def iswap():
1398+
async def set_up_iswap():
13991399
if self.iswap_installed and not skip_iswap:
14001400
iswap_initialized = await self.request_iswap_initialization_status()
14011401
if not iswap_initialized:
@@ -1405,7 +1405,7 @@ async def iswap():
14051405
minimum_traverse_height_at_beginning_of_a_command=int(self._iswap_traversal_height * 10)
14061406
)
14071407

1408-
async def core96_head():
1408+
async def set_up_core96_head():
14091409
if self.core96_head_installed and not skip_core96_head:
14101410
core96_head_initialized = await self.request_core_96_head_initialization_status()
14111411
if not core96_head_initialized:
@@ -1414,8 +1414,12 @@ async def core96_head():
14141414
z_position_at_the_command_end=self._channel_traversal_height,
14151415
)
14161416

1417-
await pip()
1418-
await asyncio.gather(autoload(), iswap(), core96_head())
1417+
async def set_up_arm_modules():
1418+
await set_up_pip()
1419+
await set_up_iswap()
1420+
await set_up_core96_head()
1421+
1422+
await asyncio.gather(set_up_autoload(), set_up_arm_modules())
14191423

14201424
# After setup, STAR will have thrown out anything mounted on the pipetting channels, including
14211425
# the core grippers.

0 commit comments

Comments
 (0)