INNER CODE UNIT · Python
nxny
MathCancer/PhysiCell · beta/anim_substrate2D.py:138
nxny = numx * numy
# idx_plane = 37
# idx0 = idx_plane * nxny
# idx1 = idx0 + nxny
# xgrid = M[0, idx0:idx1].reshape(numy, numx)
# ygrid = M[1, idx0:idx1].reshape(numy, numx)
#N = int(math.sqrt(len(M[0,:])))
#grid2D = M[0,:].reshape(N,N)
xgrid = M[0, :].reshape(numy, numx)
ygrid = M[1, :].reshape(numy, numx)
# print("M.shape = ",M.shape) # e.g., (6, 421875) (where 421875=75*75*75)
# xgrid = M[0, :].reshape(numy, numx)
# ygrid = M[1, :].reshape(numy, numx)
# xvec = grid2D[0,:]
#xvec.size