Commits

Sam Preston  committed 5f0cb86

small fix to FieldFromNPArr in PyCA.Common

  • Participants
  • Parent commits d44f9d2

Comments (0)

Files changed (1)

File Code/Python/Common/PyCACommon.py

     """
     arrx, arry, arrz = _ComponentArraysFromField(arr)
     fSz = core.Vec3Di()
-    fSz.fromlist(arr.shape[:3])
+    fSz.fromlist(arrx.shape)
 
     grid = core.GridInfo(fSz, sp, orig)
     f = core.Field3D(grid, core.MEM_HOST)