I can reproduce your error with:
In [230]: np.concatenate([],0)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-230-2a097486ce12> in <module>()
----> 1 np.concatenate([],0)
ValueError: need at least one array to concatenate
In [231]: np.concatenate([np.atleast_2d(i) for i in ()],0)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-231-007f2dd2af1b> in <module>()
----> 1 np.concatenate([np.atleast_2d(i) for i in ()],0)
ValueError: need at least one array to concatenate
So you need to figure out is why tup
in the last call is empty. Or tracing back a step, why allInstanceGroupList
, the argument to vstack
is empty.