Commit e514e06c authored by Médéric Boquien's avatar Médéric Boquien
Browse files

Ensure that the radio module still works with recent versions of numpy

parent 2916dced
......@@ -38,6 +38,7 @@
- Fix a crash in `pcigale-plots` when plotting the SED of models computed without stellar populations. (Médéric Boquien)
- Make sure that upper limits on physical properties are correctly taken into account. (Médéric Boquien)
- Improve the sanitation of input data so that upper limits of extensive properties are not eliminated from the quantities to be fitted when upper limits are activated. (Médéric Boquien)
- Ensure that the radio module still works with recent versions of numpy. (Médéric Boquien & Laure Ciesla, reported by Wenjia Zhou)
### Optimised
- Slight speedup of the computation of the likelihood from the χ² using a multiplication rather than a division. (Médéric Boquien)
- Speedup of the computation of the χ² by ~10% taking the opposite of a scalar rather than of an array. (Médéric Boquien)
......@@ -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