|
@@ -1154,10 +1154,11 @@ class MetricPluginMixin(Parent):
|
|
|
|
|
|
def get_result(self):
|
|
def get_result(self):
|
|
sourced_metric = self.region.get_data(self.rank_source[0], self.rank_source[1])
|
|
sourced_metric = self.region.get_data(self.rank_source[0], self.rank_source[1])
|
|
- for (ind, range_pair) in enumerate(self.rank_ranges):
|
|
|
|
- if ((range_pair[0] == None or sourced_metric >= range_pair[0])
|
|
|
|
- and
|
|
|
|
- (range_pair[1] == None or sourced_metric <= range_pair[1])):
|
|
|
|
|
|
+ if sourced_metric != None:
|
|
|
|
+ for (ind, range_pair) in enumerate(self.rank_ranges):
|
|
|
|
+ if ((range_pair[0] == None or sourced_metric >= range_pair[0])
|
|
|
|
+ and
|
|
|
|
+ (range_pair[1] == None or sourced_metric <= range_pair[1])):
|
|
self.result = self.result * (ind + 1)
|
|
self.result = self.result * (ind + 1)
|
|
break
|
|
break
|
|
return self.result
|
|
return self.result
|