File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
src/troute-rnr/src/troute_rnr Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ def read_rfc_flows(forecast: SiteData, settings: Settings) -> ProcessedData | No
118118 latest_obs_units = None
119119 latest_observation_m3 = None
120120 except ValueError :
121- print (f"Streamflow forecast returning stage values. Skipping Forecast for { forecast .lid } " )
121+ print (f"Streamflow observation returning stage values. Skipping Forecast for { forecast .lid } " )
122122 # Can't route the flows since the units are in ft and not kcfs. Passing
123123 return None
124124
@@ -130,9 +130,14 @@ def read_rfc_flows(forecast: SiteData, settings: Settings) -> ProcessedData | No
130130 print (f"No streamflow forecast found. Skipping Forecast for { forecast .lid } " )
131131 return None
132132
133- secondary_m3_forecast , secondary_units = convert_to_m3_per_sec (
134- secondary_forecast , forecast_data ["secondaryUnits" ]
135- )
133+ try :
134+ secondary_m3_forecast , secondary_units = convert_to_m3_per_sec (
135+ secondary_forecast , forecast_data ["secondaryUnits" ]
136+ )
137+ except ValueError :
138+ print (f"Streamflow forecast returning stage values. Skipping Forecast for { forecast .lid } " )
139+ # Can't route the flows since the units are in ft and not kcfs. Passing
140+ return None
136141
137142 try :
138143 processed_data = ProcessedData (
You can’t perform that action at this time.
0 commit comments