Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaits committed Dec 17, 2024
1 parent 8abda2b commit 59232d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 786 deletions.
9 changes: 4 additions & 5 deletions tools/statvar_importer/mcf_file_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,11 @@ def strip_namespace(value: str) -> str:


def strip_value(value: str) -> str:
"""Returns the string value with spacesding/trailing space stripped.
"""Returns the string value with leading/trailing space stripped
even if the value is enclosed in double quotes.
Args:
value: string to be cleaned.
value: string to be cleaned as text or qithin double quotes.
Returns:
string without extra leading and trailing spaces.
Expand Down Expand Up @@ -346,7 +347,7 @@ def update_mcf_nodes(
append_values: bool = True,
normalize: bool = True,
) -> dict:
"""Returns output_nodes with Property:values form nodes added.
"""Returns output_nodes with Property:values from nodes added.
Args:
nodes: dictionary of MCF nodes in the form:
Expand Down Expand Up @@ -409,8 +410,6 @@ def load_mcf_nodes(
...
}
"""
if nodes is None:
nodes = {}
if not filenames:
return nodes
# Load files in order of input
Expand Down
Loading

0 comments on commit 59232d1

Please sign in to comment.