Skip to content
Snippets Groups Projects
Commit c1fef1e8 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

fixed printing the type instead of the unit to the table

parent bb442609
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,8 @@ def parseDirectory(directory, cwd, stripDescriptionPrefix) : ...@@ -21,6 +21,8 @@ def parseDirectory(directory, cwd, stripDescriptionPrefix) :
vartype = elem.find("{https://github.com/ChimeraTK/ApplicationCore}value_type").text vartype = elem.find("{https://github.com/ChimeraTK/ApplicationCore}value_type").text
vardirection = elem.find("{https://github.com/ChimeraTK/ApplicationCore}direction").text vardirection = elem.find("{https://github.com/ChimeraTK/ApplicationCore}direction").text
varunit = elem.find("{https://github.com/ChimeraTK/ApplicationCore}unit").text varunit = elem.find("{https://github.com/ChimeraTK/ApplicationCore}unit").text
if not varunit :
varunit = ""
vardescription = elem.find("{https://github.com/ChimeraTK/ApplicationCore}description").text vardescription = elem.find("{https://github.com/ChimeraTK/ApplicationCore}description").text
if not vardescription : if not vardescription :
vardescription = "" vardescription = ""
...@@ -33,7 +35,7 @@ def parseDirectory(directory, cwd, stripDescriptionPrefix) : ...@@ -33,7 +35,7 @@ def parseDirectory(directory, cwd, stripDescriptionPrefix) :
if varlength > 1 : if varlength > 1 :
thetype=thetype+" ("+str(varlength)+" elements)" thetype=thetype+" ("+str(varlength)+" elements)"
print("| "+varname+" | "+vartype+" | "+thetype+" | "+vardescription[stripDescriptionPrefix:]+" |") print("| "+varname+" | "+vartype+" | "+varunit+" | "+vardescription[stripDescriptionPrefix:]+" |")
for elem in directory.findall("{https://github.com/ChimeraTK/ApplicationCore}directory") : for elem in directory.findall("{https://github.com/ChimeraTK/ApplicationCore}directory") :
dirdescription = "" dirdescription = ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment