unvec to (3, *shape) rather than list-of-ndarrays
This commit is contained in:
parent
2acbda4764
commit
d462ae9412
@ -45,5 +45,5 @@ def unvec(v: vfield_t, shape: numpy.ndarray) -> field_t:
|
||||
"""
|
||||
if numpy.any(numpy.equal(v, None)):
|
||||
return None
|
||||
return [vi.reshape(shape, order='C') for vi in numpy.split(v, 3)]
|
||||
return vi.reshape((3, *shape), order='C')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user