Skip to content

Commit ba98428

Browse files
committed
Fix project psf
1 parent 62b88bb commit ba98428

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

workflow/rules/project_psf.smk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
def dmcopy_selection_str_psf(wildcards, input):
33
irf_label = wildcards.irf_label
44
header = fits.getheader(input[0], "EVENTS")
5-
wcs = wcs_from_header_chandra(header, x_col=9)
5+
6+
instrument = header["INSTRUME"]
7+
if "ACIS" in instrument:
8+
wcs = wcs_from_header_chandra(header)
9+
else:
10+
wcs = wcs_from_header_chandra(header, x_col=9)
611
return config_obj.irfs[irf_label].psf.to_dm_copy_str(wcs=wcs)
712

813
rule project_psf:

0 commit comments

Comments
 (0)