diff options
author | Aaron LI <aly@aaronly.me> | 2019-01-22 23:50:05 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2019-01-22 23:50:05 +0800 |
commit | 5a88894f52096d0de88077b27d33f983173f3dcc (patch) | |
tree | 460d1dcdf24f4befd221ec6d567adaacbb6cdc0e /fg21sim/extragalactic/clusters/helper.py | |
parent | 3e6ec6783fbbd89d80b05ad79988afd999e3eaa9 (diff) | |
download | fg21sim-5a88894f52096d0de88077b27d33f983173f3dcc.tar.bz2 |
clusters/helper: Fix a variable error in density_gas()
Diffstat (limited to 'fg21sim/extragalactic/clusters/helper.py')
-rw-r--r-- | fg21sim/extragalactic/clusters/helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fg21sim/extragalactic/clusters/helper.py b/fg21sim/extragalactic/clusters/helper.py index d761915..6af0d06 100644 --- a/fg21sim/extragalactic/clusters/helper.py +++ b/fg21sim/extragalactic/clusters/helper.py @@ -287,7 +287,7 @@ def density_gas(mass, z=0.0): Calculate the mean gas density. Unit: [g/cm^3] """ - return density_number_thermal(M_main, z) * AC.mu*AC.u # [g/cm^3] + return density_number_thermal(mass, z) * AC.mu*AC.u # [g/cm^3] def density_energy_thermal(mass, z=0.0, configs=CONFIGS): |