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

Issue 829 #830

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pip>=22.1.0
setuptools>=64.0,<69.0
wheel
numpy
numpy>=1.21.0,<2.0.0
Cython>3,!=3.0.4
pandas >=1.1.5, <=2.2.0
xarray
Expand Down
4 changes: 2 additions & 2 deletions src/troute-network/troute/nhd_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -2070,12 +2070,11 @@ def write_flowveldepth_csv_pkl(stream_output_directory, file_name,
'velocity': velocity.iloc[:, i],
'depth': depth.iloc[:, i],
'nudge': nudge_df.iloc[:, i]
})
}, index=flow.index)
df_list.append(df_temp)

# Concatenate all temporary DataFrames vertically
df = pd.concat(df_list)
df.index.name = 'feature_id'

df['current_time'] = pd.to_datetime(df['t0']) + pd.to_timedelta(df['time'])
df = df[['current_time', 'flow', 'velocity', 'depth', 'nudge']]
Expand Down Expand Up @@ -2269,6 +2268,7 @@ def mask_find_seg(mask_list, nexus_dict, poi_crosswalk):
return nex_id, seg_id

def updated_flowveldepth(flowveldepth, nex_id, seg_id, mask_list):
flowveldepth = flowveldepth.copy(deep=True)
flowveldepth.index.name = 'featureID'
flowveldepth['Type'] = 'wb'
flowveldepth.set_index('Type', append=True, inplace=True)
Expand Down
Loading