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

Spectral model for gammapy fit result #1

Open
joleroi opened this issue Dec 1, 2015 · 1 comment
Open

Spectral model for gammapy fit result #1

joleroi opened this issue Dec 1, 2015 · 1 comment

Comments

@joleroi
Copy link
Collaborator

joleroi commented Dec 1, 2015

Hi,

I would like to store the result of the gammapy regions based 1D spectral analysis to disk. I though it might be a good idea to use the format proposed here. The problem is that I don't really understand it 😁

@zblz @woodmd : What should a YAML output file look like in order to comply to your proposed format? Where do I put the actual values of the parameters?

@cdeil
Copy link
Member

cdeil commented Jan 13, 2016

@joleroi - I've assigned you and put this under the "whishlist" milestone.
If you don't get any comments, do whatever you like for now and then we'll start discussing that proposal.

Given that we have JSON exporters in HESS (because YAML C++ libs are a big dependency and picoJSON is a single header file), maybe write the spec so that it just describes the dict keys / values and then say that it can easily be stored in JSON or YAML.

Generating example JSON / YAML is most easily done by defining it in a Python script and then using Python to generate the JSON / YAML text .... less error-prone than manually writing JSON / YAML.
Script should also be added to this repo somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants