You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Merton test fixture references undefined returns variable #4
tests/test_merton_process.py::simple_returns_data creates normal_returns and jump_returns, but then calls np.random.shuffle(returns) and returns pd.Series(returns) without ever defining returns.
Once the missing statsmodels dependency is installed locally, the focused test errors during fixture setup.
Reproduction
Tested on commit b0c13aa after installing statsmodels locally to get past import collection:
The fixture should combine normal_returns and jump_returns before shuffling/returning them, for example by assigning returns = np.concatenate([normal_returns, jump_returns]).
Activity