-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Standard citation style across docs #2202
Comments
Is there an automated tool we could use perhaps with bibtex file? |
I think there is a suitable bibtex extension in sphinx that would allow us to include citations in the docs in a similar way to latex. We would need to add the Users would just need to update the central Something I have not fully understood yet (still reading...) is whether we need a separate If bibtex is possible and practical in pvlib then then I think I would vote for this option. |
Just made a working example at #2204 ; I couldn't help but try that out, I think I fell in love with that project. In any case, my only possible dealbreakers are in the current status of
Anyway, +1 from my side to move to this extension progressively. |
Yeah I figured it'd be fun to work on that's why I created the issue haha..
#2204 looks good, but I understand these concerns. I'm interested to hear what others say as I have less experience with long term maintenance and the possible implications these points could have on that. |
I haven't looked at the linked issues yet, but it might help to see how other projects do citations. If a bigger project (e.g. scipy, astropy) uses this extension too, we can probably feel a bit better about the long-term outlook of this approach. Initial reactions to #2204:
|
My opinion: I favor keeping the implementation of references simple. With just text, there's little that can go wrong :) I'm not opposed to a trial using the more automated reference system for part of pvlib, as @kevinsa5 suggests. A reference manager may make more sense for pvlib.org where we are starting from a blank page. Regardless, I am in favor of choosing a reference style. We can move towards that style progressively. |
Looking at #2204, as a code reviewer it would be a minor annoyance to have to look in a second file to find a reference's details. |
Looking at some of the astropy functions (random example here) it looks like they just use a text list of references as we have been using. Looks like numpy (see here) just uses a text list too. Not sure about scipy, but at least from how they describe citing wikipedia and adding DOIs on this page, it sounds like that's just a text list as well. Good points in the rest of the comments from @kandersolar and @cwhanse too. If we were to stick with a text-based list (sounds like the discussion is leaning this way?) then I think the priority is a clear and standard style guide. It's good to see in the other packages linked above they include such guidance, e.g. including DOI, required information in the citation, etc. We could: As far as I could see I think option c) is what the projects linked above do. As for fixed styles that already exist, just for reference here are a few examples: IEEE, according to this guide MLA (according to Google Scholar) APA (according to Google Scholar) Chicago (according to Google Scholar) Harvard (according to Google Scholar) Vancouver (according to Google Scholar) |
I would be OK with c (status quo, mostly) or a. I would soften "a" a bit by recommending but not insisting on a formatting style. My preference would be for IEEE because my guess is that it is more common for solar energy journals and conference proceedings. But that's not a strong preference. |
I would certainly follow an easy-to-find recommendation because it's easier than inventing my own or trying to deduce from the existing ones what might be the best example to follow. We could skip the page numbers perhaps. |
+1 on using an existing format for new functions and gradually updating old functions. Moving forward, I think we should have a template function that demonstrates how to correctly make citations for journal articles, conference papers, websites, and reports. |
So in summary of the discussion so far, I think the consensus is to: Question: should a section be added to the current contributing page now, or hold off until #2210 is resolved? I think the bibtex discussion is still an interesting one (see #2204, @echedey-ls created a good example) so if anyone is interested in that it might still be worth investigating for its future potential. |
yes |
Marking this as closed by #2202 |
Is your feature request related to a problem? Please describe.
There is a mix of citation styles currently used in the documentation, both between pages and sometimes on the same page.
quick example:
pvlib.atmosphere.get_relative_airmass
Authors: full name (first+last), and first initial then surname
External links: some with DOI, some for which a DOI exists but is not included (e.g. ref 9).
Misc.: References in the list aren't always linked to something in the text.
Comparing with another page, e.g. pvlib.irradiance.get_ground_diffuse, the naming style is last name then first name initial.
There are also differences in other aspects of the style e.g. page/volume numbers, whether a DOI is included, etc.
Describe the solution you'd like
3.1- Good first issue PRs for new contributors, e.g. at PVPMC workshops or other tutorials
3.2- Dedicated PRs for anyone (something to do on those long-haul flights, right...)
3.3- As existing functions that already contain citations are updated for whatever other purpose, updates to the references could be included in the same PR
3.4- As new functions are added to the same packages, references for other functions from the same
.py
file could be updatedThe points in 3. are just ideas/suggestions and I hope we can discuss and decide on the best approach(es) together.
As for 1., I am not an expert on citation styles but I know there are many out there, e.g. IEEE, MLA, APA, Harvard...
We could pick on out of there, or perhaps adopt a hybrid style of our own design, e.g. we like IEEE but prefer to keep the author list to one name + et al. for brevity.
Question/suggestion: Is adopting bibtex in the docs technically possible? The formatting could be set centrally and users would only need to update a
.bib
file somewhere (but we should ensure references still appear on the pages where they are cited, so maybe multiple.bib
files would be required)Describe alternatives you've considered
We could just continue without a set style but I think having, or at at least encouraging, a consistent citation style would make it easier for users to understand the citations, locate the sources, and even just make pvlib appear more professional. Maybe there's even be a legal(?)/ethical argument there where we need to ensure citations are up to a certain standard when we are sharing other people's work through pvlib. (not certain about that last one, just a thought)
Additional context
Perhaps we could start off with point 1 in the solutions: discuss whether this is a good idea and, if so, discuss what would be a good style to adopt.
If we get that far, I'd certainly be happy to resolve 2., and contribute to 3. :)
The text was updated successfully, but these errors were encountered: