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

Double clip avoidance not working #30

Open
tim-we opened this issue Dec 12, 2020 · 1 comment
Open

Double clip avoidance not working #30

tim-we opened this issue Dec 12, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@tim-we
Copy link
Owner

tim-we commented Dec 12, 2020

image

Either

py-radio/radio/library.py

Lines 92 to 105 in 133cc3b

def next(self) -> str:
assert not self.empty(), "Cannot pick clip from empty pool"
# find a clip that is not in the recent history
idx = random.randrange(0, len(self.clips))
while idx in self._history:
idx = random.randrange(0, len(self.clips))
# add to recent history
self._history.append(idx)
if len(self._history) > self._history_len:
del self._history[0]
return self.clips[idx]
is not working or _history_len has an incorrect value.

@tim-we tim-we added the bug Something isn't working label Dec 12, 2020
@tim-we tim-we self-assigned this Dec 12, 2020
@tim-we
Copy link
Owner Author

tim-we commented Dec 12, 2020

More likely: might be caused by a library update
TODO: keep history

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant