In _get_pi_single_source(), python2 error
capelastegui opened this issue · 0 comments
capelastegui commented
======================================================================
ERROR: test_get_pi (tests.test_forecast.TestForecast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/test_forecast.py", line 2554, in test_get_pi
df_result = get_pi(df1, n_sims=100, n_cum=7)
File "anticipy/forecast.py", line 1462, in get_pi
df_result = _get_pi_single_source(df_forecast, n_sims, n_cum)
File "anticipy/forecast.py", line 1596, in _get_pi_single_source
a_sample = a_sample_base + a_sample_pi_cum_expanded
ValueError: operands could not be broadcast together with shapes (100,10) (100,7)
----------------------------------------------------------------------
I think this is due to a non-backwards compatible integer division - need to check