Skip to content

Commit

Permalink
allow non-hyphenated prefix
Browse files Browse the repository at this point in the history
Also means that if you want a hyphen, it must be included.
See example in LowerColorado_TX/test_AnA_V4_NHD.yaml
  • Loading branch information
James Halgren committed Sep 5, 2024
1 parent 9d9d711 commit 6b19d67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/troute-nwm/src/nwm_routing/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _parquet_output_format_converter(df, start_datetime, dt, configuration, pref
# Prepare the location_id with prefix
df.index.name = 'location_id'
df.reset_index(inplace=True)
location_ids = prefix_ids + '-' + df['location_id'].astype(str)
location_ids = prefix_ids + df['location_id'].astype(str)

# Flatten the dataframe using NumPy
num_locations = df.shape[0]
Expand Down
2 changes: 1 addition & 1 deletion test/LowerColorado_TX/test_AnA_V4_NHD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,6 @@ output_parameters:
#---------
parquet_output_folder: output/
configuration: short_range
prefix_ids: nex
prefix_ids: wb-


0 comments on commit 6b19d67

Please sign in to comment.