Skip to content

Commit 84a59a4

Browse files
committed
update reindexing of flowveldepth before writing output
1 parent 7024683 commit 84a59a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/troute-network/troute/nhd_io.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2337,6 +2337,8 @@ def optimized_agg(merge_flowveldepth_reset):
23372337
# Set the new 'Type' column as an index
23382338
all_nex_data = all_nex_data.set_index('Type', append=True)
23392339

2340+
# Reindex to (n, f), (n, v), (n, d), ...
2341+
all_nex_data = all_nex_data.reindex(flowveldepth.columns, axis=1)
23402342
else:
23412343
all_nex_data = pd.DataFrame()
23422344

0 commit comments

Comments
 (0)