diff --git a/unilabos/app/web/client.py b/unilabos/app/web/client.py index ebaba457..3c51b349 100644 --- a/unilabos/app/web/client.py +++ b/unilabos/app/web/client.py @@ -199,7 +199,7 @@ class HTTPClient: headers={"Authorization": f"Lab {self.auth}"}, timeout=20, ) - with open(os.path.join(BasicConfig.working_dir, "req_resource_get.json"), "w", encoding="utf-8") as f: + with open(os.path.join(BasicConfig.working_dir, "res_resource_get.json"), "w", encoding="utf-8") as f: f.write(f"{response.status_code}" + "\n" + response.text) return response.json() diff --git a/unilabos/resources/graphio.py b/unilabos/resources/graphio.py index ada7e8d2..70e569ba 100644 --- a/unilabos/resources/graphio.py +++ b/unilabos/resources/graphio.py @@ -575,16 +575,16 @@ def resource_plr_to_ulab(resource_plr: "ResourcePLR", parent_name: str = None, w replace_info = { "plate": "plate", "well": "well", - "tip_spot": "container", - "trash": "container", + "tip_spot": "tip_spot", + "trash": "trash", "deck": "deck", - "tip_rack": "container", + "tip_rack": "tip_rack", } if source in replace_info: return replace_info[source] else: print("转换pylabrobot的时候,出现未知类型", source) - return "container" + return source def resource_plr_to_ulab_inner(d: dict, all_states: dict, child=True) -> dict: r = {