Commit fd61d3f0 authored by Yannick Roehlly's avatar Yannick Roehlly

fix: Correct logspace use for numpy 1.18

Close #22
parent 10813a9e
......@@ -68,7 +68,7 @@ class Casey2012(SedModule):
Npl = ((1. - np.exp(-(lambda_0 / lambda_c) ** beta)) * (c / lambda_c)
** 3. / (np.exp(cst.h * c / (lambda_c * cst.k * T)) - 1.))
self.wave = np.logspace(3., 6., 1000.)
self.wave = np.logspace(3., 6., 1000)
conv = c / (self.wave * self.wave)
self.lumin_blackbody = (conv * (1. - np.exp(-(lambda_0 / self.wave)
......
......@@ -75,7 +75,7 @@ class MBB(SedModule):
c = cst.c * 1e9
lambda_0 = 200e3
self.wave = np.logspace(3., 6., 1000.)
self.wave = np.logspace(3., 6., 1000)
conv = c / (self.wave * self.wave)
self.lumin_mbb = (conv * (1. - np.exp(-(lambda_0 / self.wave)
......
......@@ -53,7 +53,7 @@ class Radio(SedModule):
# m s¯¹.
c = cst.c * 1e9
# We define the wavelength range for the non thermal emission
self.wave = np.logspace(5., 9., 1000.)
self.wave = np.logspace(5., 9., 1000)
# We compute the synchrotron emission normalised at 21cm
self.lumin_nonthermal = ((1./self.wave)**(-self.alpha + 2.) /
(1./2.1e8)**(-self.alpha + 2.))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment