Skip to content

Commit a3d09d6

Browse files
author
Man-Yat Chu
committed
Fixing stupid bug and return d_tot.
1 parent 646c479 commit a3d09d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastpm/multi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ def get_species_transfer_function_from_class(cosmology, z):
194194
d['d_b'] = tf['d_b'] * -1
195195
if getattr(tf, 'd_ncdm[0]', None) is not None:
196196
d['d_ncdm[0]'] = tf['d_ncdm[0]'] * -1
197+
d['d_tot'] = tf['d_tot'] * -1
197198
if cosmology.gauge == 'newtonian':
198199
# dtau to da, the negative sign in the 3 fluid equation of motion
199200
# eliminated due to the flip in d
@@ -214,4 +215,3 @@ def get_species_transfer_function_from_class(cosmology, z):
214215
for name in d:
215216
e[name] = lambda k, x=tf['k'], y=d[name]: numpy.interp(k, x, y, left=0, right=0)
216217
return e
217-
correspondencecorrespondence

0 commit comments

Comments
 (0)