Skip to content

Commit

Permalink
fixed nbb boostrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
mcerliani committed Nov 23, 2023
1 parent 8703fb9 commit 6eede02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

HERE = pathlib.Path(__file__).parent

VERSION = '1.0.4'
VERSION = '1.0.5'
PACKAGE_NAME = 'tsmoothie'
AUTHOR = 'Marco Cerliani'
AUTHOR_EMAIL = 'cerlymarco@gmail.com'
Expand Down
3 changes: 2 additions & 1 deletion tsmoothie/utils_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,8 @@ def _id_nb_bootstrap(n_obs, block_length):
np.arange(0, n_obs, block_length)
).reshape(-1, 1)

_id = (blocks + nexts).ravel()[:n_obs]
_id = (blocks + nexts).ravel()
_id = _id[_id < n_obs]

return _id

Expand Down

0 comments on commit 6eede02

Please sign in to comment.