Commit 7992fd7b authored by Martin Reinecke's avatar Martin Reinecke

add default distaxis

parent 7b999234
......@@ -383,7 +383,7 @@ def distaxis(arr):
return arr._distaxis
def from_local_data(shape, arr, distaxis):
def from_local_data(shape, arr, distaxis=0):
return data_object(shape, arr, distaxis)
......
......@@ -79,7 +79,7 @@ def distaxis(arr):
return -1
def from_local_data(shape, arr, distaxis):
def from_local_data(shape, arr, distaxis=-1):
if shape != arr.shape:
raise ValueError
return arr
......
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