-
Notifications
You must be signed in to change notification settings - Fork 60
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
Idea for function that gives a citation list for theory predictions #120
Comments
As a first step, maybe adding an And then as a second step, one could think about whether it is actually necessary to include a function that loops over a list of observables, or if such a loop can be easily written by the user. If I think about writing a paper, I might want to have a citation after each observable that I describe there, so then I would not need a loop over a list of observables. And if I automatically generate a table with many measurements and predictions like in the appendix of the smelli paper, then I already have to write a python function that creates this table and I can just include the call to |
Hi, I don't think it makes too much sense attaching this to an Actually, a very nice package that I've come across in my current field of occupation has an elegant solution for this: a At the end just do That code is BSD-3 licensed so you can even just reuse it. |
... and then somebody only has to fix DavidMStraub/inspiretools#7 and everything becomes automatic 🚀 |
@DavidMStraub thanks, that's a very good idea! In principle, with such an implementation, one could still think about adding a method to the def SM_citations(self, *args):
Citations.reset()
flavio.sm_prediction(self.name, *args)
return Citations.inspire_list which would just return what one has to cite for the SM prediction of a given observable and it would also work after changing implementations. |
Yes 👍 Although in that case I would rather use a new throwaway instance instead of resetting the global one. |
Ooh, that way of doing things look quite elegant, and nice that we can copy the code (joys of open source!). |
We can close this since work is now ongoing in the pull request |
So the basic idea is to allow people to easily cite the original theory papers for each observable they use in flavio.
My rough idea is to copy how all the experimental measurements have an inspire key, and add the same thing to the Observable class.
Roughly, the function would look like
and be defined as a top level function in
flavio/functions.py
The couple of questions I'm thinking about are:
The text was updated successfully, but these errors were encountered: