Relative Content

Tag Archive for pythonarraysnumpyvalueerror

Why does the program insist something is a sequence when it is not?

I wrote a function which returns me a certain array. Whenever I just print a certain value of this function, it works fine. However, if I try to remember certain values of the function as variables, it works for one variable, but afterwards it returns me an error, saying: “ValueError: setting an array element with a sequence.”