Ok. Ignore this, I was passing a single array to the ndarrays function, and as a result was getting a list of the iterated array. Turning that into a list containing a single array fixed my problem. Perhaps it isn't so helpful to allow users to pass an array to this method instead of an actual container, such as a list.