Skip to content

Commit

Permalink
Fixed a bug where wdem was checking if kT existed if there had been a…
Browse files Browse the repository at this point in the history
… previous run, but that was a hangover from the original function I copied to make it.
  • Loading branch information
DavidT3 committed Sep 15, 2023
1 parent e3860b0 commit f605a8a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xga/xspec/fit/general.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) 03/06/2023, 14:53. Copyright (c) The Contributors
# Last modified by David J Turner (turne540@msu.edu) 14/09/2023, 21:09. Copyright (c) The Contributors

import warnings
from typing import List, Union
Expand Down Expand Up @@ -451,7 +451,7 @@ def multi_temp_dem_apec(sources: Union[BaseSource, BaseSample], outer_radius: Un
if spectrum_checking:
check_list = "{Tmax beta inv_slope}"
check_lo_lims = "{0.01 0.01 0.1}"
check_hi_lims = "{20 1 20}"
check_hi_lims = "{20 1 10}"
check_err_lims = "{15 5 5}"
else:
check_list = "{}"
Expand All @@ -475,8 +475,8 @@ def multi_temp_dem_apec(sources: Union[BaseSource, BaseSample], outer_radius: Un

# If the fit has already been performed we do not wish to perform it again
try:
res = source.get_results(out_rad_vals[src_ind], model, inn_rad_vals[src_ind], 'kT', group_spec, min_counts,
min_sn, over_sample)
res = source.get_results(out_rad_vals[src_ind], model, inn_rad_vals[src_ind], 'Tmax', group_spec,
min_counts, min_sn, over_sample)
except ModelNotAssociatedError:
script_paths.append(script_file)
outfile_paths.append(out_file)
Expand Down

0 comments on commit f605a8a

Please sign in to comment.