Skip to content

Commit d7d37ce

Browse files
author
David Turner
committed
Still trying to fix the problem of being unable to read in annular spectra from eSASS. Thought it was sorted when I altered how the esass_spectrum_set function constructed new background RMF/ARF paths, but actually I had still left a mistake there. Fixed now?
Signed-off-by: David Turner <djturner@umbc.edu>
1 parent 1f1ce41 commit d7d37ce

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/11/26, 6:02 PM. Copyright (c) The Contributors.
2+
# Last modified by David J Turner (djturner@umbc.edu) 5/12/26, 7:27 AM. Copyright (c) The Contributors.
33

44
import os
55
from copy import deepcopy, copy
@@ -1059,8 +1059,8 @@ def esass_spectrum_set(sources: Union[BaseSource, BaseSample], radii: Union[List
10591059
split_brmf = copy(interim_extras[p_ind]['b_rmf_path']).split('/')
10601060
split_barf = copy(interim_extras[p_ind]['b_arf_path']).split('/')
10611061

1062-
new_b_rmf = split_r[-1].replace('_back.rmf', "_ident{si}_{ai}_backspec.rmf".format(si=set_id, ai=r_ind))
1063-
new_b_arf = split_barf[-1].replace('_back.arf', "_ident{si}_{ai}_backspec.arf".format(si=set_id, ai=r_ind))
1062+
new_b_rmf = split_brmf[-1].replace('_back.rmf', "_ident{si}_{ai}_back.rmf".format(si=set_id, ai=r_ind))
1063+
new_b_arf = split_barf[-1].replace('_back.arf', "_ident{si}_{ai}_back.arf".format(si=set_id, ai=r_ind))
10641064

10651065
# New names into the commands
10661066
cur_cmd = cur_cmd.replace(split_a[-1], new_arf)

0 commit comments

Comments
 (0)