Commit 8b840386 authored by Klaus Wölfel's avatar Klaus Wölfel Committed by Eteri

make sure to return view

parent f799d780
......@@ -72,7 +72,6 @@ class DataArrayViewLine(DataArray):
createExpressionContext(None, portal=getindex), dtype_expression))
if name_list:
dtype.names = name_list
array_view = array_view.reshape(array_view.size,).view(dtype)
return np.ndarray((array_view.shape[0],), dtype, zbigarray[:], 0, array_view.strides[0])
else:
array_view = array_view
return array_view
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment