-
Notifications
You must be signed in to change notification settings - Fork 314
fix LaTeX dot in diversification ratio formula #1788
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
base: main
Are you sure you want to change the base?
fix LaTeX dot in diversification ratio formula #1788
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1788 +/- ##
=======================================
Coverage 92.07% 92.07%
=======================================
Files 62 62
Lines 7398 7398
=======================================
Hits 6812 6812
Misses 586 586 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Thanks for the edits @saishreyakumar I'm see some issues with it still |
Thank you for the PR @saishreyakumar ! Do you need a hand finishing this up? |
@@ -534,12 +534,12 @@ def diversification_ratio( | |||
The Diversification Ratio is calculated as: | |||
|
|||
.. math:: | |||
DR = \frac{\\sum_{i=1}^{n} w_i \\cdot \\sigma_i}{\\sigma_p} | |||
DR = \frac{\sum_{i=1}^{n} w_i \cdot \sigma_i}{\sigma_p} \ |
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.
According to the Sphinx documentation, the equation doesn't need a newline after the math call:
When the math is only one line of text, it can also be given as a directive argument:
.. math:: (a + b)^2 = a^2 + 2ab + b^2
Also, maybe the line should not terminate with \
which might be the cause of the rendering issue @williambdean is seeing..
Description
Replaced \cdot with . in the LaTeX formula for the diversification ratio in the docstring to fix the rendering issue.
Related Issue
Checklist
pre-commit.ci autofix
to auto-fix.📚 Documentation preview 📚: https://pymc-marketing--1788.org.readthedocs.build/en/1788/