Skip to content
Snippets Groups Projects
Commit d8c82433 authored by Sander Snoo's avatar Sander Snoo
Browse files

Improved error message

parent 48e5c9b4
No related branches found
No related tags found
No related merge requests found
......@@ -178,7 +178,9 @@ def _update_segment_dims(segment, lp, arg_index, rendering=False):
new_shape, axis = _get_new_dim_loop(data_shape, lp_axis, lp_length)
if new_shape != data_shape:
if segment.is_slice:
raise Exception(f'Cannot resize data in slice (Indexing)')
# TODO: Fix this with refactored indexing.
raise Exception(f'Cannot resize data in slice (Indexing). '
'All loop axes must be added before indexing segment.')
axes[i] = axis
data = update_dimension(data, new_shape)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment