Commit f516d934 authored by Martin Reinecke's avatar Martin Reinecke
Browse files


parent 1107973c
Pipeline #25052 passed with stages
in 6 minutes and 45 seconds
......@@ -335,7 +335,7 @@ def from_object(object, dtype, copy, set_locked):
raise ValueError("cannot lock object without copying")
data = np.array(object._data, dtype=dtype, copy=copy)
if set_locked:
data.flags.writeable = False
return data_object(object._shape, data, distaxis=object._distaxis)
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