Commit 5fc303ca authored by theos's avatar theos
Browse files

Fixed a dtype bug in slicing_transformation.py

parent 0fcd7cdc
...@@ -19,8 +19,7 @@ class SlicingTransformation(Transformation): ...@@ -19,8 +19,7 @@ class SlicingTransformation(Transformation):
for slice_list in utilities.get_slice_list(val.shape, axes): for slice_list in utilities.get_slice_list(val.shape, axes):
if return_val is None: if return_val is None:
return_val = val.copy_empty(dtype=self.codomain.dtype, return_val = val.copy_empty(global_shape=return_shape)
global_shape=return_shape)
data = val.get_data(slice_list, copy=False) data = val.get_data(slice_list, copy=False)
data = data.get_full_data() data = data.get_full_data()
......
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