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

Reading parameters for xpxspec from csv file #626

Open
albertomanfreda opened this issue Sep 21, 2022 · 2 comments
Open

Reading parameters for xpxspec from csv file #626

albertomanfreda opened this issue Sep 21, 2022 · 2 comments

Comments

@albertomanfreda
Copy link
Collaborator

Currently there is no way to specify a range for the parameters, only the initial value. Reading from file allows the user to pass all the arguments allowed by xspec for a model parameter (value, delta, min, bottom, top, max).

@albertomanfreda
Copy link
Collaborator Author

Tentative implementation in #627

@albertomanfreda
Copy link
Collaborator Author

Now that I am at it, I realized that it may be even better to read the entire model from file, with a structure similar to the one in ixpeobssim/ixpeobssim/srcmodel/ascii/powerlaw_parfile.par

This could be given directly through the --model option, although that requires implementing some logic to understand whether the argument is a file path or a model expression.

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