summaryrefslogtreecommitdiff
path: root/report/plot_factory.rb
diff options
context:
space:
mode:
Diffstat (limited to 'report/plot_factory.rb')
-rw-r--r--report/plot_factory.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/report/plot_factory.rb b/report/plot_factory.rb
index 26a9c67..bf59960 100644
--- a/report/plot_factory.rb
+++ b/report/plot_factory.rb
@@ -68,10 +68,12 @@ module Reports
# filter out nil-predictions and <=0 predictions if log-scale wanted
valid_indices = []
x_i.size.times do |i|
- if x_i[i]!=nil and y_i[i]!=nil and (!logscale or (x_i[i]>0 and y_i[i]>0))
- valid_indices << i
- else
- omit_count += 1
+ if x_i[i]!=nil and y_i[i]!=nil
+ if !logscale or (x_i[i]>0 and y_i[i]>0)
+ valid_indices << i
+ else
+ omit_count += 1
+ end
end
end
if valid_indices.size < x_i.size