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

Problem with weights in history #319

Open
alexarje opened this issue May 12, 2024 · 1 comment
Open

Problem with weights in history #319

alexarje opened this issue May 12, 2024 · 1 comment
Assignees
Labels
bug Something isn't working video

Comments

@alexarje
Copy link
Contributor

I am testing the weights feature of history. In the documentation it says that it can be given by "3 1.2 1". However, when I try this:

video.history(history_length=100, weights="3 1.2 1")

I get the following error:

ParameterError: Found wrong type(s) in the list of weights. Use ints and floats.

I have tested with only ints and only floats, but I get the the same error. Is this a bug?

@alexarje alexarje added bug Something isn't working video labels May 12, 2024
@joachimpoutaraud
Copy link
Contributor

Thanks for reporting this issue! There seems to be a problem with the string formatting in the function documentation (which is a bit unconventional, by the way), I'll try to fix that as soon as possible. In the meantime, you can replace your string with a correct int/float list and that should solve your problem (e.g. weights=[3,1.2,1]).

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

No branches or pull requests

2 participants