MGT-python
MGT-python copied to clipboard
Problem with weights in history
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?
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]).