3
TypeError: object array may be self-referencing

I tried to read this question but I didn't get much out of it. TypeError: object array may be self-referencing python

Thanks in advance

1
  • Please provide a complete, minimal example that reproduces the error you claim to have -- one that we can copy and paste in our systems and run as is. Commented Sep 22, 2018 at 4:22

1 Answer 1

2

Figured it out myself after a while, I had a calculation with numpy arrays and I did not manually specify the datatype so it turned out it was automatically set to dtype=np.object. I fixed it by specifying dtype=np.float64.

myarray = ([[somevalue, somevalue, somevalue],
            [somevalue, somevalue, somevalue],
            [somevalue, somevalue, somevalue]], dtype=np.float64)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.