diff --git a/python/helpers/pydev/_pydevd_bundle/pydevd_thrift.py b/python/helpers/pydev/_pydevd_bundle/pydevd_thrift.py index e50d316a99f0..4b988f688c18 100644 --- a/python/helpers/pydev/_pydevd_bundle/pydevd_thrift.py +++ b/python/helpers/pydev/_pydevd_bundle/pydevd_thrift.py @@ -456,20 +456,11 @@ def array_to_meta_thrift_struct(array, name, format): # http://stackoverflow.com/questions/16837946/numpy-a-2-rows-1-column-file-loadtxt-returns-1row-2-columns # explanation: http://stackoverflow.com/questions/15165170/how-do-i-maintain-row-column-orientation-of-vectors-in-numpy?rq=1 # we use kind of a hack - get information about memory from C_CONTIGUOUS - is_row = array.flags['C_CONTIGUOUS'] - - if is_row: - rows = 1 - cols = len(array) - if cols < len(array): - reslice = '[0:%s]' % (cols) - array = array[0:cols] - else: - cols = 1 - rows = len(array) - if rows < len(array): - reslice = '[0:%s]' % (rows) - array = array[0:rows] + cols = 1 + rows = len(array) + if rows < len(array): + reslice = '[0:%s]' % (rows) + array = array[0:rows] elif l == 2: rows = array.shape[-2] cols = array.shape[-1]