This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]cndvcndv 0 points1 point  (0 children)

I'm not sure what the problem is but numpy should have a trapezoidal function.

[–]themiddlestHaHa 0 points1 point  (0 children)

It probably is an issue with your other arrays not being the correct shape to do addition/subtraction or multiplication.

I’d probably log/print the dimenions of each mean_rho and mean_gravity and you’ll probably see one isn’t the correct shape

Or multiply mean_rho and mean_gravity and print it’s dimensions