MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / get_node_object

Method get_node_object

source/binding/Python/maa/resource.py:206–221  ·  view source on GitHub ↗

获取任务当前的定义(解析为对象) / Get the current definition of task (parsed as object) Args: name: 任务名 / Task name Returns: Optional[JPipelineData]: 任务定义对象,如果不存在则返回 None Task definition object, or None if not exists

(self, name: str)

Source from the content-addressed store, hash-verified

204 return None
205
206 def get_node_object(self, name: str) -> Optional[JPipelineData]:
207 """获取任务当前的定义(解析为对象) / Get the current definition of task (parsed as object)
208
209 Args:
210 name: 任务名 / Task name
211
212 Returns:
213 Optional[JPipelineData]: 任务定义对象,如果不存在则返回 None
214 Task definition object, or None if not exists
215 """
216 node_data = self.get_node_data(name)
217
218 if not node_data:
219 return None
220
221 return JPipelineParser.parse_pipeline_data(node_data)
222
223 def get_default_recognition_param(self, reco_type: JRecognitionType) -> Optional[JRecognitionParam]:
224 """获取指定识别类型的默认参数 / Get default parameters for specified recognition type

Callers

nothing calls this directly

Calls 2

get_node_dataMethod · 0.95
parse_pipeline_dataMethod · 0.80

Tested by

no test coverage detected