Skip to content

Commit

Permalink
Pin to v0.5.8 for now
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckierDodge committed Jun 24, 2024
1 parent 49810a1 commit eac2338
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/ad-sdl/wei
FROM ghcr.io/ad-sdl/wei:v0.5.8

LABEL org.opencontainers.image.source=https://github.com/AD-SDL/hudson_platecrane_module
LABEL org.opencontainers.image.description="Drivers and REST API's for the Hudson Platecrane and Sciclops robots"
Expand Down
10 changes: 0 additions & 10 deletions src/platecrane_rest_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,16 +228,6 @@ def do_action(action_handle: str, action_vars):
if action_handle == "transfer":
print("Starting the transfer request")

# source_type = action_args.get("source_type", None)
# print("Source Type: " + str(source_type))

# target_type = action_args.get("target_type", None)
# print("Target Type: " + str(target_type))

# if not source_type or not target_type:
# print("Please provide source and target transfer types!")
# state = ModuleStatus.ERROR

try:
platecrane.transfer(
source,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import pytest
import requests
from wei import ExperimentClient
from wei.core.data_classes import ModuleAbout, WorkcellData, WorkflowStatus
from wei.core.data_classes import ModuleAbout, Workcell, WorkflowStatus


class TestWEI_Base(unittest.TestCase):
Expand All @@ -20,7 +20,7 @@ def __init__(self, *args, **kwargs):
self.workcell_file = self.root_dir / Path(
"tests/workcell_defs/test_workcell.yaml"
)
self.workcell = WorkcellData.from_yaml(self.workcell_file)
self.workcell = Workcell.from_yaml(self.workcell_file)
self.server_host = self.workcell.config.server_host
self.server_port = self.workcell.config.server_port
self.url = f"http://{self.server_host}:{self.server_port}"
Expand Down

0 comments on commit eac2338

Please sign in to comment.