Skip to content

Commit

Permalink
bug fix computed outtake
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastiaan Roos committed Oct 4, 2012
1 parent 2441224 commit 4a77839
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lizard_wbcomputation/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ def get_open_water_incoming_flows(self, start_date, end_date):
if station.into == True and
station.is_computed == True and
station.is_output_station == True][0]
print intake.name
incoming["intake_wl_control"] = {intake: control['intake_wl_control']}
return incoming

Expand All @@ -465,10 +466,11 @@ def get_open_water_outgoing_flows(self, start_date, end_date):
outgoing["indraft"] = buckets_summary.indraft
outgoing["defined_output"]= input['outgoing_timeseries']
outtake = [station for station in self.area.pumping_stations
if station.into == True and
if station.into == False and
station.is_computed == True and
station.is_output_station == True][0]
outgoing["outtake_wl_control"] = {outtake: control['outtake_wl_control']}
print outtake.name
return outgoing

@memoize
Expand Down

0 comments on commit 4a77839

Please sign in to comment.