Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
Revert undesired change
Browse files Browse the repository at this point in the history
  • Loading branch information
Reed Martz committed Dec 7, 2016
1 parent 58b2947 commit 5495f7e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion django/climate_change_api/indicators/indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,11 @@ class HeatWaveDurationIndex(YearlyMaxConsecutiveDaysIndicator):
'5C above historic norm')
variables = ('tasmax',)
filters = {'day_of_year': F('map_cell__historic_average__day_of_year')}
conditions = {'tasmax__gt': F('map_cell__historic_average__tasmax') + 5}
raw_condition = 'tasmax > avg_tasmax + 5'

def aggregate(self):
self.queryset = self.queryset.annotate(avg_tasmax=F('map_cell__historic_average__tasmax'))
return super(HeatWaveDurationIndex, self).aggregate()


##########################
Expand Down

0 comments on commit 5495f7e

Please sign in to comment.