domeckert / pyproffit

Pyproffit is a Python code for the analysis of X-ray brightness profiles from clusters of galaxies
GNU General Public License v3.0
18 stars 4 forks source link

Compute Mgas within radius+err #13

Closed monamolham closed 2 years ago

monamolham commented 3 years ago

error: mg_r500, mg_lo, mg_hi =depr.Mgas(radius = 1123., radius_err=50.) ValueError: too many values to unpack (expected 3)

solution1: return mg,mgl,mgh instead of return mg,mgl,mgh,rho

or

solution2: mg_r500, mg_lo, mg_hi,rho =depr.Mgas(radius = 1123., radius_err=50.)