From 6b19d67df213900100adbefbe7562aa44639107e Mon Sep 17 00:00:00 2001 From: James Halgren Date: Wed, 4 Sep 2024 17:34:53 -0500 Subject: [PATCH] allow non-hyphenated prefix Also means that if you want a hyphen, it must be included. See example in LowerColorado_TX/test_AnA_V4_NHD.yaml --- src/troute-nwm/src/nwm_routing/output.py | 2 +- test/LowerColorado_TX/test_AnA_V4_NHD.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/troute-nwm/src/nwm_routing/output.py b/src/troute-nwm/src/nwm_routing/output.py index 824e79129..9d46886de 100644 --- a/src/troute-nwm/src/nwm_routing/output.py +++ b/src/troute-nwm/src/nwm_routing/output.py @@ -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] diff --git a/test/LowerColorado_TX/test_AnA_V4_NHD.yaml b/test/LowerColorado_TX/test_AnA_V4_NHD.yaml index c53cd8412..3d350326e 100644 --- a/test/LowerColorado_TX/test_AnA_V4_NHD.yaml +++ b/test/LowerColorado_TX/test_AnA_V4_NHD.yaml @@ -128,6 +128,6 @@ output_parameters: #--------- parquet_output_folder: output/ configuration: short_range - prefix_ids: nex + prefix_ids: wb- \ No newline at end of file