Skip to content

Commit

Permalink
Fixed mass convenience function so that it defines the hydrostatic ma…
Browse files Browse the repository at this point in the history
…ss profile instance in the correct way.
  • Loading branch information
DavidT3 committed Jan 17, 2025
1 parent 6c6544a commit 743f6d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xga/sourcetools/mass.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This code is a part of X-ray: Generate and Analyse (XGA), a module designed for the XMM Cluster Survey (XCS).
# Last modified by David J Turner (turne540@msu.edu) 30/07/2024, 17:14. Copyright (c) The Contributors
# Last modified by David J Turner (turne540@msu.edu) 17/01/2025, 15:42. Copyright (c) The Contributors

from typing import Union, List
from warnings import warn
Expand Down Expand Up @@ -147,7 +147,7 @@ def inv_abel_dens_onion_temp(sources: Union[GalaxyCluster, ClusterSample], outer
rads = t_prof.radii.copy()[1:]
rad_errs = t_prof.radii_err.copy()[1:]
deg_rads = src.convert_radius(rads, 'deg')
hy_mass = HydrostaticMass(t_prof, t_model, d_prof, d_model, rads, rad_errs, deg_rads, fit_method,
hy_mass = HydrostaticMass(t_prof, d_prof, t_model, d_model, rads, rad_errs, deg_rads, fit_method,
num_walkers, num_steps, show_warn=show_warn, progress=False,
auto_save=True)
# Add the profile to the source storage structure
Expand Down

0 comments on commit 743f6d8

Please sign in to comment.