Closed pdeiml closed 6 years ago
I found a bug in my code. Please do not merge this here and wait until I write a new comment.
I fixed it and squashed the three commits. It is ready to merge but travis CI leads to errors which I don't understand because 'python make.py all' runs without any errors. @cdeil Can you take a look to travis CI and tell me what is wrong then I will make a fixup.
By the way: The sed and lightcurve files have "sed" and "lc" in the filenames in output. Do we want to add a "ds" to the name of the dataset files?
Do we want to add a "ds" to the name of the dataset files?
I don't see any pros or cons, so would default to what we have. If we were to do it, we would probably do it in input and output and it should be a separate discussion / proposal.
The travis-ci build is failing here: https://travis-ci.org/gammapy/gamma-cat/builds/340908822#L2387
You can reproduce that error by running this locally:
python -m pytest -v --cov=gammacat
I think the fix is to update the reference value in the test here: https://github.com/gammapy/gamma-cat/blob/176c191e20942526d659689375b74ff6cc0d502e/gammacat/tests/test_info.py#L9
The diff is very easy, I think. You only have to look at the files in the gammcat folder which are collection.py and info.py. The rest is only running the output. If you want to check whether it works you can check out this branch, go to output/data, delete everything there and then run "make.py collection". This will lead to exactly what is there right now because that is what I did. I deleted output/data and then I ran "make.py collection".
Concerning the TravisCI problem and your review, I will fix it later today or tomorrow morning
I close this PR. #198 is handled in #216.
Thanks! I'll review and merge #216 this afternoon.
This PR handles the ideas from https://github.com/gammapy/gamma-cat/issues/198.
The new structure in the output folder is similar to the one in the input folder. The only difference is the "missing" info.yaml files which are not necessary in the output folder.
RTM