From aa9ea173eca9399c7a14c9edda7640c5063f4708 Mon Sep 17 00:00:00 2001 From: KshitijT Date: Fri, 10 Mar 2017 11:51:42 +0200 Subject: [PATCH] Fixing issue 25 --- Owlcat/Gainplots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Owlcat/Gainplots.py b/Owlcat/Gainplots.py index 7835c5e..17ef11f 100644 --- a/Owlcat/Gainplots.py +++ b/Owlcat/Gainplots.py @@ -142,7 +142,7 @@ def make_gain_plots (filename, prefix=None, gain_label="G", valid = (gg!=0)&(gg!=1); # mask trivial or unfilled solutions amp = abs(gg) ampwh = numpy.ma.masked_array(amp,mask=~valid); - amid = ampwh.mean(1); + amid = ampwh.mean(1, dtype='float64'); xvalid = ~amid.mask; if gain_plot_style == 'fill': pylab.fill_between(x[:,0],ampwh.min(1),ampwh.max(1),where=xvalid,color='grey')