added array conversion to ambiguous types in grid_filters.coordinates0_point function
This commit is contained in:
parent
1de12bb402
commit
7c7c3926b7
|
@ -151,8 +151,8 @@ def coordinates0_point(cells: Union[_np.ndarray, Sequence[int]],
|
||||||
Undeformed cell center coordinates.
|
Undeformed cell center coordinates.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
start = origin + size/_np.array(cells)*.5
|
start = _np.array(origin) + size/_np.array(cells)*.5
|
||||||
end = origin + size - size/_np.array(cells)*.5
|
end = _np.array(origin) + _np.array(size) - size/_np.array(cells)*.5
|
||||||
|
|
||||||
return _np.stack(_np.meshgrid(_np.linspace(start[0],end[0],cells[0]),
|
return _np.stack(_np.meshgrid(_np.linspace(start[0],end[0],cells[0]),
|
||||||
_np.linspace(start[1],end[1],cells[1]),
|
_np.linspace(start[1],end[1],cells[1]),
|
||||||
|
|
Loading…
Reference in New Issue