Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move statvar code to tools #1136

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tools/statvar_importer/mcf_file_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def strip_value(value: str) -> str:
even if the value is enclosed in double quotes.

Args:
value: string to be cleaned as text or qithin double quotes.
value: string to be cleaned as text or within double quotes.

Returns:
string without extra leading and trailing spaces.
Expand Down Expand Up @@ -410,6 +410,8 @@ def load_mcf_nodes(
...
}
"""
if nodes is None:
nodes = {}
if not filenames:
return nodes
# Load files in order of input
Expand Down
Loading