timezone_name_get() 函数

本文深入探讨了人工智能算法标注的核心技术,包括数据预处理、特征提取、模型训练及评估等关键步骤,旨在为读者提供全面的算法标注知识体系。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题描述 Too many local variables (17/15)WaferManagement.check_wafer_state_in_chamber(too-many-locals) 函数名称 check_wafer_state_in_chamber() 具体待优化整改函数如下,请基于给定的函数优化整改 def check_wafer_state_in_chamber(self, chamber_name, wafer_state, slot_name: list, timeout): """ 在超时时间内检查腔室内wafer是否达到指定状态, timeout为1时只检查一次 Args: chamber_name (str): 前端显示的腔室名称 CH2,CHE等 wafer_state (str): existing,processing,empty slot_name (list): 槽位名字, Slot1等 timeout (int): 超时时间 """ chambers, operator = self._get_chamber_name(chamber_name) slot_state_dict = { "processing": "PROCESSING_STATE", "existing": "EXIST_STATE", "empty": "EMPTY_STATE", "processed": "PROCESSED_STATE", "unknown": "UNKNOWN_STATE", } slots_info, slot_state_list = [], [] target_slot_state = slot_state_dict.get(wafer_state.lower()) end_time = time.time() + timeout while time.time() < end_time: response = self.__parts_config_controller.query_station_infos_using_get().get("resultData", []) for station_info in response: for chamber in chambers: if station_info["displayName"] == chamber: slots_info.append(station_info["slots"]) if not slots_info: raise ValueError(f"Can not find slots info ! ") for i in range(len(slots_info)): for slot in slot_name: slot_state_list.append(slots_info[i].get(slot)["slotState"]) self._check_chamber_slot(operator, target_slot_state, slot_state_list) time.sleep(1) raise ValueError("Check wafer state in chamber failed because timeout")
07-30
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值