- #1

BiGyElLoWhAt

Gold Member

- 1,570

- 116

However, this is where I'm getting my error:

Python:

```
Gravity = zeros([1000,1000])
while i < 1000:
while j < 1000:
Gravity[i,j] = metric(sqrt((RS1*sin(ThetaS1)-i)**2+(RS1*cos(ThetaS1-j)**2)),Rs1,step,ThetaS1,omega1*step,speed1)
Gravity[i,j] += metric(sqrt((RS2*sin(ThetaS2)-i)**2+(RS2*cos(ThetaS2-j)**2)),Rs2,step,ThetaS2,omega2*step,speed2)
print("Done filling\n")
```

"ValueError: setting an array element with a sequence."

From googling around, it seems that

"the shape of the input list isn't a (generalised) "box" that can be turned into a multidimensional array." -stack exchange.

I was wondering what I am missing that's making this error out?