From 1961bf7e4f98832bde197e6f77feaf0071d430b6 Mon Sep 17 00:00:00 2001 From: Oleg Smirnov Date: Thu, 15 Nov 2018 12:23:42 +0200 Subject: [PATCH] fixes #84 --- Cattery/Meow/PointSource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cattery/Meow/PointSource.py b/Cattery/Meow/PointSource.py index efb844c..aad0c85 100644 --- a/Cattery/Meow/PointSource.py +++ b/Cattery/Meow/PointSource.py @@ -148,7 +148,7 @@ def norm_spectrum (self): nsp << Meq.Pow(fr,self._parm('spi')); else: # multi-term spectral index - logfr = self.ns.logfreqratio << Meq.Log(fr); + logfr = self.ns.logfreqratio << Meq.Log(fr)/math.log(10); nsp << Meq.Pow(fr,Meq.Add(self._parm('spi'),self._parm('spi_2')*logfr, *[ self._parm('spi_%d'%(i+1))*Meq.Pow(logfr,i) for i in range(2,self._nspi)] )); return nsp;