-
Notifications
You must be signed in to change notification settings - Fork 155
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
Add reference from within function, based on input #8
Comments
This adds complexity to the code. I would recommend that users have two wrappers:
|
@rgaiacs I think this is unfeasible when you have many functions acceping different sets of parameters. I would say that the reference in this case should be added when loading/setting the parameters to start with (just once), not in every function that can potentially accept different parameters. @tinosulzer, was this the use case you were refering to? |
@dalonsoa The user case that I was considering was: Alice implements a new new algorithm and the package that Alice publishes has
Bob uses Alice's implementation when searching for the "optimal" parameters
When Eve will use Bob's parameters, Eve can import Bob's package (if it exists) or create a function like Bob did. |
The use case I was thinking is if the citation key is passed as an argument (e.g. a dictionary key), so the citation is for some "information" (e.g. a set of parameters) rather than code |
Functionality to allow references to be added based on inputs would be useful. The use case is for setting parameters within PyBaMM. For example, in the following case, I would like to reference a different citation based on which parameter dictionary is used:
The text was updated successfully, but these errors were encountered: