Skip to content

Commit 4504f19

Browse files
author
David Turner
committed
Made the same change to eROSITA generation of individual Obs individual TM spectral products, and made sure that for an individual TM individual Obs extended source spectra we always use the combined inst, individual Obs image as an extent map.
Signed-off-by: David Turner <djturner@umbc.edu>
1 parent dee7925 commit 4504f19

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

xga/generate/esass/spec.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This code is part of X-ray: Generate and Analyse (XGA), a module designed for the XMM Cluster Survey (XCS).
2-
# Last modified by David J Turner (djturner@umbc.edu) 5/8/26, 3:07 PM. Copyright (c) The Contributors.
2+
# Last modified by David J Turner (djturner@umbc.edu) 5/10/26, 6:27 PM. Copyright (c) The Contributors.
33

44
import os
55
from copy import deepcopy, copy
@@ -273,11 +273,12 @@ def _make_spec_cmd_info(cur_evt_list: EventList):
273273
inst="combined")
274274
else:
275275
# We only need the image path for extended source generation
276+
# ALSO ALWAYS USED COMBINED FOR INST HERE, SEE THE NOTE ABOVE
276277
im = source.get_images(cur_evt_list.obs_id,
277278
lo_en=EROSITA_EXTMAP_LO_EN,
278279
hi_en=EROSITA_EXTMAP_HI_EN,
279280
telescope=evt_list.telescope,
280-
inst=inst)
281+
inst="combined")
281282

282283
# As with the paths to the event lists, it is possible that the image
283284
# file names will be too long for eSASS' srctool to handle. To
@@ -779,7 +780,6 @@ def srctool_spectrum(sources: Union[BaseSource, BaseSample], outer_radius: Union
779780
inner_radius: Union[str, Quantity] = Quantity(0, 'arcsec'), group_spec: bool = True,
780781
min_counts: int = 5, min_sn: float = None, num_cores: int = NUM_CORES,
781782
disable_progress: bool = False, combine_tm: bool = True, combine_obs: bool = True, force_gen: bool = False):
782-
783783
"""
784784
A wrapper for all the eSASS and Heasoft processes necessary to generate an eROSITA spectrum that can be analysed
785785
in XSPEC. Every observation associated with this source, and every instrument associated with that

0 commit comments

Comments
 (0)