From 9979cd33efaa99a0d5203a9c3eb90f573eefdcb0 Mon Sep 17 00:00:00 2001 From: "oliver.rostig" <oliver.rostig@rwth-aachen.de> Date: Thu, 13 Jul 2023 14:29:16 +0200 Subject: [PATCH] comments --- writefile.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/writefile.py b/writefile.py index 8c1f606..a39c2ef 100644 --- a/writefile.py +++ b/writefile.py @@ -63,8 +63,12 @@ def getVariantType(datatype): with open("config.toml", "rb") as t: + """ + opens toml config file to access its data + """ toml_dict = tomli.load(t) +#sets opcua-server address and namespace according to config file server_endpoint = toml_dict['server'] namespace = toml_dict['namespace'] @@ -272,7 +276,7 @@ def writeparameter(parameterobj, headnode, enumnodedict, enumvaldict, enumvarian def writefunction(functionobj, headnode): """ - Takkes the function objects writes the function body by calling deffunction and adds it to the objecttypes + Takes the function objects writes the function body by calling deffunction and adds it to the objecttypes :param functionobj: List of functionobjects :param headnode: component the functions belong to :return: None -- GitLab