MGT-python icon indicating copy to clipboard operation
MGT-python copied to clipboard

Problem with weights in history

Open alexarje opened this issue 1 year ago • 1 comments

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 avatar May 12 '24 18:05 alexarje

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]).

joachimpoutaraud avatar May 13 '24 07:05 joachimpoutaraud