Skip to content
Snippets Groups Projects
Commit cbb96423 authored by Valerio Mariani's avatar Valerio Mariani
Browse files

Fixed a problem with scalar stacks actually being 2-dimensional

parent e8fa01d9
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ class _Stack: ...@@ -49,7 +49,7 @@ class _Stack:
self._data_type = _assign_data_type(data) self._data_type = _assign_data_type(data)
if isinstance(data, (bytes, int, float)): if isinstance(data, (bytes, int, float)):
self._data_shape = (1,) self._data_shape = ()
else: else:
self._data_shape = data.shape self._data_shape = data.shape
...@@ -103,7 +103,7 @@ class _Stack: ...@@ -103,7 +103,7 @@ class _Stack:
raise RuntimeError('The type of the input data does not match what is already present in the stack.') raise RuntimeError('The type of the input data does not match what is already present in the stack.')
if isinstance(data, (bytes, int, float)): if isinstance(data, (bytes, int, float)):
curr_data_shape = (1,) curr_data_shape = ()
else: else:
curr_data_shape = data.shape curr_data_shape = data.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