Commit 9ea71f4e authored by Reimar H Leike's avatar Reimar H Leike
Browse files

now actually fixed tthe bug where clip would fail for distributed data objects

parent ffb036a6
......@@ -307,7 +307,7 @@ for f in ["sqrt", "exp", "log", "tanh", "conjugate", "sin", "cos", "tan",
def clip(x, a_min=None, a_max=None):
return data_object(x.shape, np.clip(x._data, a_min, a_max), x.distaxis)
return data_object(x.shape, np.clip(x._data, a_min, a_max), x._distaxis)
def from_object(object, dtype, copy, set_locked):
......
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