-
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
Easiest way to access all publications of a gamma-cat object #194
Comments
I think this is not being so easy right now and impossible via python and gammapy. You can search here @cdeil Maybe we should change the layout of the index file. It is being an array of ordered dicts each one representing a dataset.
Is that a good idea? |
I think what @GernotMaier wants is already easily possible: Although I'm sure that this needs to be extended, I don't think anyone used that, we just introduced the index files recently. I'm not even sure if all data is already in the output folder and listed in the index file. Like I said in the call, I'll make a tutorial notebook how to use it soon. Assigning this issue to myself. I was hoping to get to it today, Monday at the latest. |
@pdeiml - I don't think your suggestion to change the index file format is useful. People want to query and select subsets in different ways. Hard-coding a format where the first key is the source name, or the reference or something else, is very nice for one use case, but not for the others. |
Here's an example: It's very rough, but might be of help for now while we work on gamma-cat. Concretely it shows that
|
@GernotMaier - We now also have http://gamma-cat.readthedocs.io/use/source_list.html and on the source detail pages like e.g. http://gamma-cat.readthedocs.io/use/sources/79.html a list of available resources in gamma-cat. Unfortunately it's still buggy, i.e. not reliable at the moment. But easy to fix: #198 (comment) |
PS: I think the issue with string "scale" entries mentioned above is resolved. I searched the input YAML files and couldn't find any. |
@micheledoro - this is how to get a list of MAGIC data in gamma-cat for now: I'm posting it here, because it might be of interest to others. For now, the way to do it is always to take the index of available files and then filter the ones you're interested in (using a pandas DataFrame is convenient for that). |
Hi @cdeil, I was trying to use the notebook you generated, but after
I have the following error:
|
@micheledoro - I don't see that error. Can you change to
and see which file has the problematic character? If it's not obvious which character it is, you can paste it in https://gist.github.com/ and I'll have a look. There's also things like https://pteo.paranoiaworks.mobi/diacriticsremover/ that remove non-ascii characters for you. Usually it 's a long dash in source names copied PDFs or something like that "MAGIC BLA–BLA" |
Hi, I tried with |
@micheledoro - I don't quite understand. Is the issue gone, or is it still there for you? |
Hi. What i meant is that I still have the same problem even if the output looks fine, see the link. |
@micheledoro - From the traceback you showed above, the last line in your code that is executed is this one:
Thus my suggestion to print the filename. This should print the filename of the proplematic file, and then the error should appear and the traceback be printed. Is this not the case!??? What you pasted here, the last line is an ECSV file: I don't understand what's going on ... |
I am trying to access all published data of a certain object, but I am not entirely sure how to do this. This is what I've started with:
This prints me only the values from the most recent publication in gamma-cat (in this case from 2017arXiv170804045M).
What is the easiest way to loop over all publications on an object (e.g. HESS J0632+057)?
The text was updated successfully, but these errors were encountered: