eric6/DebugClients/Python/DebugVariables.py

changeset 7250
d8bdc55aee1a
parent 6988
87ad87ef1910
child 7332
49076c600903
equal deleted inserted replaced
7249:0bf517e60f54 7250:d8bdc55aee1a
430 430
431 # in case it has additional fields 431 # in case it has additional fields
432 d = super(NdArrayResolver, self).getDictionary(var) 432 d = super(NdArrayResolver, self).getDictionary(var)
433 433
434 if var.size > 1024 * 1024: 434 if var.size > 1024 * 1024:
435 d['min'] = 'ndarray too big, calculating min would slow down' \ 435 d['min'] = (
436 ' debugging' 436 'ndarray too big, calculating min would slow down debugging')
437 d['max'] = 'ndarray too big, calculating max would slow down' \ 437 d['max'] = (
438 ' debugging' 438 'ndarray too big, calculating max would slow down debugging')
439 d['mean'] = 'ndarray too big, calculating mean would slow down' \ 439 d['mean'] = (
440 ' debugging' 440 'ndarray too big, calculating mean would slow down debugging')
441 elif self.__isNumeric(var): 441 elif self.__isNumeric(var):
442 if var.size == 0: 442 if var.size == 0:
443 d['min'] = 'empty array' 443 d['min'] = 'empty array'
444 d['max'] = 'empty array' 444 d['max'] = 'empty array'
445 d['mean'] = 'empty array' 445 d['mean'] = 'empty array'

eric ide

mercurial