eric6/DebugClients/Python/DebugVariables.py

changeset 6952
31602c3f09fd
parent 6942
2602857055c5
child 6969
fd7af2312383
equal deleted inserted replaced
6948:c6e580fd9bb1 6952:31602c3f09fd
389 ' debugging' 389 ' debugging'
390 d['max'] = 'ndarray too big, calculating max would slow down' \ 390 d['max'] = 'ndarray too big, calculating max would slow down' \
391 ' debugging' 391 ' debugging'
392 else: 392 else:
393 if self.__isNumeric(var): 393 if self.__isNumeric(var):
394 d['min'] = var.min() 394 if var.size == 0:
395 d['max'] = var.max() 395 d['min'] = 'empty array'
396 d['mean'] = var.mean() 396 d['max'] = 'empty array'
397 d['mean'] = 'empty array'
398 else:
399 d['min'] = var.min()
400 d['max'] = var.max()
401 d['mean'] = var.mean()
397 else: 402 else:
398 d['min'] = 'not a numeric object' 403 d['min'] = 'not a numeric object'
399 d['max'] = 'not a numeric object' 404 d['max'] = 'not a numeric object'
400 d['mean'] = 'not a numeric object' 405 d['mean'] = 'not a numeric object'
401 d['shape'] = var.shape 406 d['shape'] = var.shape

eric ide

mercurial