-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
Tag PyBaMM citations #1182
Comments
I think this sounds great! At the moment the result of |
Maybe we could rename the current For those who don't, maybe we could use a more user friendly function. I think the list/table would be useful to list the tags, but then we should provide them with the full reference somewhere. Options that I can think of:
Thoughts? |
Is there an easy way to automatically print the citation in a nice way from a bibtex file? If so, it would be nice to generate a pdf or similar with all the citations and what they are used for. Maybe it could also print some other useful info like current version number etc. so that it also serves as a helpful document for reproducing results. I like the option of printing to bibtex, but maybe you are right - it isn't most useful for everyone. |
There a few packages (see this Stackoverflow post) but it seems that none is great. Maybe the closest one is Pybtex but doesn't seem to be that active either... |
Just took another look and there has been a new release of Pybtex. In my opinion, this would be the best way to render the references nicely. Does this sound like a good idea or would it be better to not add another dependency for such a minor thing? |
I was following this and the mentioned issue, are you looking to create a new method in Citations class to print citations in a better way? The print method (which you are thinking of renaming) already uses And as I was exploring the citations section, |
The goal of this issue was to somehow tag citations with where they are used in the code (e.g. are they used in a solver or a particular model) so that users know why they need to cite that paper. I think we are happy with how the citations are printed now that we are using Some of the reference keys were updated in #1330 to make them all consistent - are you up to date with the latest develop branch? This might be the cause of the key error. |
Yes, after the pulling the branch it works, thank you. |
Hello @tinosulzer and @tinosulzer , I want to work on this issue but I am new to this repo and I need help. Please assign me this. |
At the moment we register citations (e.g. here) in various parts of the code, which then get logged using the It would be helpful to also log somehow where the citations were registered. Probably best in some high-level way like by the folder inside |
Hi @rtimms, I'm not sure how a table would be implemented but perhaps a modification or improvement for the def(register, key, cited_from):
# additional logic and then after calling >>> pybamm.print_citations() returns
Another way to do the same is to wrap the |
@agriyakhetarpal go ahead, currently I working on different issues. |
@agriyakhetarpal sounds great, thanks! |
Re-opening as discussed in #2908 |
Summary
The way citations are printed now (all together) can make it quite hard for an inexperienced user to know why the need to cite each reference. It would be good to add a tag when registering PyBaMM citations and also some extra functionality that, when printing the citations, reads the tags and groups them in a more meaningful way. For example, we could print some sort of list or table that lists:
and so on...
Please add your comments and suggestions
Motivation
Make it easier for new or inexperienced users to know what's the purpose of each reference, which might lead in them just dumping the citations in their papers all together. Adding this functionality should lead to higher quality citations in the papers.
The text was updated successfully, but these errors were encountered: