GLM Helper Functions¶
This script contains function to parse a GLM into a dictionary that can then be modified and then exported to a modified glm
-
supportFunctions.parseGLM.
parse
(inputStr, filePath=True)¶ Parse a GLM into an omf.feeder tree. This is so we can walk the tree, change things in bulk, etc.
Input can be a filepath or GLM string.
-
supportFunctions.parseGLM.
sortedWrite
(inTree)¶ Write out a GLM from a tree, and order all tree objects by their key.
Sometimes Gridlab breaks if you rearrange a GLM.