Commit 27c07aadb65e59aeb3762cd8c82132b1fa441eae

Authored by Jürgen Knödlseder
1 parent 0328ad4e

Set background and response file attributes in PHA On spectrum generated by csphagen (#2404)

Showing 1 changed file with 5 additions and 0 deletions
cscripts/csphagen.py
... ... @@ -505,6 +505,11 @@ class csphagen(ctools.csobservation):
505 505 arfname = prefix + '_arf.fits'
506 506 rmfname = prefix + '_rmf.fits'
507 507  
  508 + # Set background and response file names in On spectrum
  509 + obs.on_spec().backfile(offname)
  510 + obs.on_spec().respfile(rmfname)
  511 + obs.on_spec().ancrfile(arfname)
  512 +
508 513 # Save files
509 514 obs.on_spec().save(onname, clobber)
510 515 obs.off_spec().save(offname, clobber)
... ...