Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert_xspec_user_script #862

Open
DougBurke opened this issue Mar 22, 2024 · 0 comments
Open

convert_xspec_user_script #862

DougBurke opened this issue Mar 22, 2024 · 0 comments
Assignees

Comments

@DougBurke
Copy link
Member

I have a xcm file which has apec abundance as a free parameter

       0.461097      0.001          0          0          5          5

but we converted this to

set_par(m2.Abundanc, 0.461097)

which is a problem because the abundance defaults to frozen, so this left the parameter frozen

sherpa-4.16.0> xsapec.foo
-------------> xsapec.foo()
<XSapec model instance 'xsapec.foo'>

sherpa-4.16.0> print(foo)
xsapec.foo
   Param        Type          Value          Min          Max      Units
   -----        ----          -----          ---          ---      -----
   foo.kT       thawed            1        0.008           64        keV
   foo.Abundanc frozen            1            0            5           
   foo.redshift frozen            0       -0.999           10           
   foo.norm     thawed            1            0        1e+24           

Also, we can skip the max-parameter check for the norm parameters at least (as we default to 1e24 rather than XSPEC's 1e20).

There are other issues to do with the parameter ranges but that is in part due to the difference between XSPEC and Sherpa parameters, so not clear what to do....

@DougBurke DougBurke self-assigned this Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant