Closed aditivijayan closed 3 years ago
I'll look into this.
For your first issue, it looks like you set the PSF model to the name of a background file:
xrism_new["psf"] = "resolve_h7ev_2019a_rslnxb.pha"
Sorry the error message isn't better--I'll fix that.
Please see http://hea-www.cfa.harvard.edu/soxs/users_guide/instrument.html#psf-models for examples of how to set PSF models.
The second issue can be resolved by removing:
hubs["dep_name"] = ''
which is not necessary anymore. Sorry, this also needs a better error message.
Hi John
The second solution solves the problem! Thank you very much!
Following your suggestion, I tried various input for psf in the code-
`KeyError Traceback (most recent call last)
I don't think there is a default option for the PSF--if the docs say that somewhere let me know because that would be wrong. So you must specify a PSF and None
would not work.
Note that in the docs it shows that the PSF entry must be a list. So for a Gaussian PSF you have something like:
["gaussian", 1.0]
Where the second entry is the FWHM of the Gaussian in arcseconds. I think you are seeing the errors you are because you are only putting a string there.
It works now! Thank you!
Hi John
I updated SOXS to 3.0.0 version. I am facing a couple of problems-
from soxs import get_instrument_from_registry, add_instrument_to_registry xrism_new = get_instrument_from_registry("xrism_resolve") xrism_new["name"] = "xrism_new" xrism_new["arf"] = "resolve_pnt_spec_ND_20190701.arf" xrism_new["rmf"] = "resolve_h7ev_2019a.rmf" xrism_new["bkgnd"] = None xrism_new["psf"] = "resolve_h7ev_2019a_rslnxb.pha" name = add_instrument_to_registry(xrism_new)
When I run soxs.instrument_simulator with this instrument, I get an error. I am pasting it below-
`KeyError Traceback (most recent call last)