Skip to content
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

Runtime Warning in version 1.0.0 with python3.9 #9

Open
takato3000 opened this issue Aug 18, 2022 · 1 comment
Open

Runtime Warning in version 1.0.0 with python3.9 #9

takato3000 opened this issue Aug 18, 2022 · 1 comment

Comments

@takato3000
Copy link

takato3000 commented Aug 18, 2022

Hi, Much appreciate about the library.
I'm on Python 3.9 and Windows 10, met following error:

C:\Users\****\AppData\Local\Programs\Python\Python39\lib\site-packages\rqrisk\risk.py:127: RuntimeWarning: invalid value encountered in double_scalars return (self.annual_return - self.beta * self.benchmark_annual_return) / annual_residual_std

I edited my local code with safe_div and it worked without warning.
but I'm not sure if it is the right solution.
And I found that risk.py from 1.0.2 has a different impl from 1.0.0
and the module version on PyPI is 1.0.0

Will there be an updated version on PyPI?

@Zhou-JiaJun
Copy link
Contributor

感谢反馈,正在排查这个警告,之后会更新到PYPI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants