Good afternoon!
The following is my snippet of code:
density_new = density_old[:,:,40:55]
for i in range(0,16):
density_new[:,:,i] = 1020
Now, this should only change density_new, because by the way we allocate density_new it has its own memory ID (I double-checked using python's id() command on both variables). The problem is that when I run the code, it changes both density_old and density_new, and since they have different IDs, I don't know why this is happening. Any help would be appreciated.