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

[BUG] #78

Open
gautambak opened this issue Nov 30, 2019 · 2 comments
Open

[BUG] #78

gautambak opened this issue Nov 30, 2019 · 2 comments
Assignees

Comments

@gautambak
Copy link

Describe the bug
Sample code does not work. Window is not defined in the example.

To Reproduce
Run first sample code in github page

I fixed this by adding ts to the front window variable but I think the example should be updated.
This is what works - (ts added to ..ts.Window(22, 0)) )

import gs_quant.timeseries as ts

x = ts.generate_series(1000) # Generate random timeseries with 1000 observations
vol = ts.volatility(x, ts.Window(22, 0)) # Compute realized volatility using a window of 22 and a ramp up value of 0
vol.tail()

@nayakchandan
Copy link

I dont face the issue described here, the sample code works
Capture

@StylusEaterSixthStreet
Copy link

@gautambak The code is missing a print() statement:

import gs_quant.timeseries as ts

x = ts.generate_series(1000) # Generate random timeseries with 1000 observations
vol = ts.volatility(x, ts.Window(22, 0)) # Compute realized volatility using a window of 22 and a ramp up value of 0
print(vol.tail())

That should work for you now.

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

4 participants