Skip to content

Commit

Permalink
fix doctest by adding sort to column name list
Browse files Browse the repository at this point in the history
  • Loading branch information
kbonney committed Nov 13, 2024
1 parent ffada5d commit 97ca6fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wntr/gis/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def _extract_geodataframe(df, crs=None, valid_base_names=None,

# Add back in valid base attributes that had all None values
cols = list(set(valid_base_names) - set(df.columns))
cols.sort()
if len(cols) > 0:
df[cols] = None

Expand Down

0 comments on commit 97ca6fa

Please sign in to comment.