Skip to content

Commit

Permalink
Merge pull request #1296 from DavidT3/bug/massConvenienceFuncBrokenWi…
Browse files Browse the repository at this point in the history
…thNewProfile

Fixed mass convenience function so that it defines the hydrostatic ma…
  • Loading branch information
DavidT3 authored Jan 17, 2025
2 parents 6c6544a + 743f6d8 commit 6cca72d
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 6cca72d

Please sign in to comment.