Skip to content

Commit 5b383d8

Browse files
author
David Turner
committed
Added the FIT_FUNC_ARGS entry for double_temp_apec. For issue #1335
1 parent c63a737 commit 5b383d8

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

xga/xspec/fitconfgen.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# This code is a part of X-ray: Generate and Analyse (XGA), a module designed for the XMM Cluster Survey (XCS).
2-
# Last modified by David J Turner (turne540@msu.edu) 12/03/2025, 16:02. Copyright (c) The Contributors
2+
# Last modified by David J Turner (turne540@msu.edu) 27/03/2025, 22:31. Copyright (c) The Contributors
33

44
from inspect import signature, Parameter
55
from types import FunctionType
66
from typing import Union
77

88
from astropy.units import Quantity
99

10-
# This constant very importantly defined whether each argument to the XGA XSPEC fitting functions should be included
10+
# This constant very importantly defines whether each argument to the XGA XSPEC fitting functions should be included
1111
# in the fit configuration storage key - we define it here so that this information can be accessed outside the
1212
# actual fit function. We will also check the arguments of each fit function against these entries to see whether
1313
# an argument has been added that is not accounted for here.
@@ -18,6 +18,14 @@
1818
'group_spec': False, 'min_counts': False, 'min_sn': False, 'over_sample': False,
1919
'one_rmf': False, 'num_cores': False, 'spectrum_checking': False, 'timeout': False},
2020

21+
'double_temp_apec': {'inner_radius': False, 'start_temp_one': True, 'start_temp_two': True,
22+
'start_met_one': True, 'start_met_two': True, 'lum_en': False, 'freeze_nh': True,
23+
'freeze_met_one': True, 'freeze_met_two': True, 'freeze_temp_one': True,
24+
'freeze_temp_two': True, 'lo_en': True, 'hi_en': True, 'par_fit_stat': True,
25+
'lum_conf': False, 'abund_table': True, 'fit_method': True,
26+
'group_spec': False, 'min_counts': False, 'min_sn': False, 'over_sample': False,
27+
'one_rmf': False, 'num_cores': False, 'spectrum_checking': False, 'timeout': False},
28+
2129
'single_temp_mekal': {'inner_radius': False, 'start_temp': True, 'start_met': True, 'lum_en': False,
2230
'freeze_nh': True, 'freeze_met': True, 'freeze_temp': True, 'lo_en': True, 'hi_en': True,
2331
'par_fit_stat': True, 'lum_conf': False, 'abund_table': True, 'fit_method': True,

0 commit comments

Comments
 (0)