-
Notifications
You must be signed in to change notification settings - Fork 17
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
Control which SED goes in the catalog #219
Comments
I read through the code which makes the collection and the catalog and I have a few suggestions. We have https://github.com/gammapy/gamma-cat/blob/master/input/gammacat/gamma_cat_dataset.yaml which is intended to control which datasets (tev-*.yaml) go into the collection. But - as you can see in https://github.com/gammapy/gamma-cat/blob/master/gammacat/collection.py#L275 - it is not used to control it. The datasets which are being written to the collection are searched by going through the info.yaml files. Therefore, my suggestion is the following:
|
@pdeiml - You can see that it's used from Of course, a fix for this issue and generally improvements to the catalog making / configuration are very welcome! If you take on this task, please make small pull requests that improve code / docs / content of the catalog that are easy and quick to review for me. (and not a large restructuring / rewrite, together with a fix for this issue) Since it seems it wasn't clear to you how the catalog is built, starting by improving the contributor docs (and maybe renaming For users, the most useful improvement (apart from fixing this issue which SED is filled in the catalog) would be to explain what's in the catalog here: https://gamma-cat.readthedocs.io/data/catalog.html Again, I would suggest to make small improvements, e.g. just to link to https://github.com/gammapy/gamma-cat/blob/master/input/gammacat/gamma_cat_columns.yaml and say that those columns are available, or add a link to https://github.com/gammapy/gamma-cat/blob/master/input/gammacat/gamma_cat_dataset.yaml and explain that this controls the content of the catalog. |
Well, But what about my suggestion above with one single file for all types of data and that we copy the datasets by scanning through the folders? |
That sounds like a regression bug then. Initially when I wrote and used this, It would also be good to have some checks, e.g. you could add a
I don't understand. IMO the way it should work is that only input folder is scanned once to make an input index file. Then the output collection is made, starting with the input index. Then the catalog is made, from the output collection (via the output index), plus the config file what to put in the catalog. I thought it already worked that way; if not, please fix. @pdeiml - I'm very busy this week, but if there's still questions, I'd prefer a 10 min call over Github back and forth. |
I will take a closer look to this but I think that is a regression bug, yes. I totally agree with you about the procedure at the end of your comment but I think that is not working like that. I will look at this problem as well the next days. |
@pdeiml - Thank you! |
We have to implement a way to control which SED goes in the catalog.
Yesterday I made this change:
gamma-cat/gammacat/catalog.py
Line 604 in ba11b08
As you can see in these updated examples, there were cases before and after where the SED doesn't match the spectral model we have in the catalog:
cdeil/gamma-cat-status@218dfa9
This is a reminder issue for myself to implement a good solution for this and to document it properly.
The text was updated successfully, but these errors were encountered: