nikhil-sarin / redback

A Bayesian inference software package for end-to-end fitting and interpretation of electromagnetic transients
GNU General Public License v3.0
47 stars 24 forks source link

Example GRB data gives Error #192

Closed ZacharyLane1204 closed 7 months ago

ZacharyLane1204 commented 9 months ago

I am attempting to run the GRB example using private data in the tutorial and I keep getting the error "Meta data does not exist for this event." When I try to use my own personal data for a GRB (time, flux, flux_error) I also get the same error. Can you point me where to fix this or add a FAQ section to answer this?

nikhil-sarin commented 9 months ago

Hi @ZacharyLane1204, this 'error' is actually just a warning. Redback is currently set up to try and search for some metadata (redshift, RA/DEC) of every transient when its first loaded from places like Swift and in future TNS. If it can't find this it will just throw this warning. When you create your own transient object it also does the same thing.

The metadata is not necessary for any other functionality of redback so you are safe to ignore.

Thanks for pointing this out as something to add to a FAQ. If you know how to add something to docs and want to help me get started with one, please make a pull request!

nikhil-sarin commented 7 months ago

Closing as it's not an error. The warning message has been modified in #195