Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sronilsson committed Sep 27, 2024
1 parent 832c604 commit 40e5b04
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ Welcome to SimBA's documentation!
:width: 1000
:align: center




These docs are under development. For detailed tutorials, code, and more extensive documentation
see the `SimBA GitHub repository <https://github.com/sgoldenlab/simba>`_.

Expand Down
Binary file added docs/tutorials_rst/img/index/landing_1.webm
Binary file not shown.
4 changes: 1 addition & 3 deletions simba/mixins/timeseries_features_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1839,9 +1839,7 @@ def sliding_pct_in_top_n(
results = np.full((x.shape[0], windows.shape[0]), -1.0)
for i in range(windows.shape[0]):
W_s = int(windows[i] * fps)
for cnt, (l, r) in enumerate(
zip(range(0, x.shape[0] + 1), range(W_s, x.shape[0] + 1))
):
for cnt, (l, r) in enumerate(zip(range(0, x.shape[0] + 1), range(W_s, x.shape[0] + 1))):
sample = x[l:r]
cnts = np.sort(np.unique(sample, return_counts=True)[1])[-n:]
results[int(r - 1), i] = np.sum(cnts) / sample.shape[0]
Expand Down

0 comments on commit 40e5b04

Please sign in to comment.