-
-
Notifications
You must be signed in to change notification settings - Fork 10
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 sphinxbibtex and function to get references from methods #651
Conversation
Add function to generate citations.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #651 +/- ##
==========================================
- Coverage 82.23% 74.32% -7.92%
==========================================
Files 101 107 +6
Lines 8020 8805 +785
==========================================
- Hits 6595 6544 -51
- Misses 1425 2261 +836 ☔ View full report in Codecov by Sentry. |
This DOI in mle looks broken. |
This is the correct one https://doi.org/10.1177/0049124104268644 |
preliz/utils/citations.py
Outdated
pass | ||
|
||
|
||
def citations(methods=None, show_as="bibtex"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also work outside a notebook environment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, will it return a string of the references?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, we should also have an option to write to a file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added an option to write to a file, if no file path is provided we can just return the string
Closes #640
Description
Checklist