secop_ophyd.GenNodeCode#
Module Contents#
Classes#
Generates A Python Class for a given SECoP_Node_Device instance. This allows autocompletiion and type hinting in IDEs, this is needed since the attributes of the generated Ophyd devices are only known at runtime. |
API#
- class secop_ophyd.GenNodeCode.Method(cmd_name: str, description: str, cmd_sign: inspect.Signature)[source]#
Initialization
- class secop_ophyd.GenNodeCode.GenNodeCode(path: str | None = None, log=None)[source]#
Generates A Python Class for a given SECoP_Node_Device instance. This allows autocompletiion and type hinting in IDEs, this is needed since the attributes of the generated Ophyd devices are only known at runtime.
Initialization
Instantiates GenNodeCode, internally all atrribues on a node and module level are collected. Additionally all the needed imports are collected in a dict
- node_mod = None#
- module_folder_path: pathlib.Path | None = None#