Skip to content

Commit

Permalink
fix: use correct _outflow variable (fixes #124)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellkite500 authored and aaraney committed Jun 24, 2024
1 parent b71bfb8 commit f941b7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/ngen_cal/src/ngen/cal/calibration_cathment.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __init__(self, nexus: Nexus, start_time: str, end_time: str, fabric: "GeoSer
#If no `main_output_variable`, default to Q_OUT
self._output_var = output_var
#use the nwis location to get observation data
obs = self.outflow._hydro_location.get_data(start_time, end_time)
obs = self._outflow._hydro_location.get_data(start_time, end_time)
#make sure data is hourly
self._observed = obs.set_index('value_time')['value'].resample('1H').nearest()
self._observed.rename('obs_flow', inplace=True)
Expand Down Expand Up @@ -142,4 +142,4 @@ def restart(self) -> int:
except FileNotFoundError:
pass
return restart_iteration


0 comments on commit f941b7c

Please sign in to comment.