Changes in src/sas/qtgui/Utilities/GuiUtils.py [e694f0f:f0bb711] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Utilities/GuiUtils.py
re694f0f rf0bb711 144 144 # custom open_path 145 145 open_folder = custom_config.DEFAULT_OPEN_FOLDER 146 if open_folder !=None and os.path.isdir(open_folder):146 if open_folder is not None and os.path.isdir(open_folder): 147 147 DEFAULT_OPEN_FOLDER = os.path.abspath(open_folder) 148 148 else: … … 230 230 dataDeletedSignal = QtCore.pyqtSignal(list) 231 231 232 # Send data to Data Operation Utility panel 233 sendDataToPanelSignal = QtCore.pyqtSignal(dict) 234 235 # Send result of Data Operation Utility panel to Data Explorer 236 updateModelFromDataOperationPanelSignal = QtCore.pyqtSignal(QtGui.QStandardItem, dict) 232 237 233 238 def updateModelItemWithPlot(item, update_data, name=""): … … 430 435 text += 'X_min = %s: X_max = %s\n' % (xmin, max(data.x)) 431 436 text += 'Y_min = %s: Y_max = %s\n' % (ymin, max(data.y)) 432 if data.dy !=None:437 if data.dy is not None: 433 438 text += 'dY_min = %s: dY_max = %s\n' % (min(data.dy), max(data.dy)) 434 439 text += '\nData Points:\n' 435 440 x_st = "X" 436 441 for index in range(len(data.x)): 437 if data.dy !=None and len(data.dy) > index:442 if data.dy is not None and len(data.dy) > index: 438 443 dy_val = data.dy[index] 439 444 else: 440 445 dy_val = 0.0 441 if data.dx !=None and len(data.dx) > index:446 if data.dx is not None and len(data.dx) > index: 442 447 dx_val = data.dx[index] 443 448 else: 444 449 dx_val = 0.0 445 if data.dxl !=None and len(data.dxl) > index:450 if data.dxl is not None and len(data.dxl) > index: 446 451 if index == 0: 447 452 x_st = "Xl" 448 453 dx_val = data.dxl[index] 449 elif data.dxw !=None and len(data.dxw) > index:454 elif data.dxw is not None and len(data.dxw) > index: 450 455 if index == 0: 451 456 x_st = "Xw" … … 486 491 y_val = data.qy_data[index] 487 492 i_val = data.data[index] 488 if data.err_data !=None:493 if data.err_data is not None: 489 494 di_val = data.err_data[index] 490 if data.dqx_data !=None:495 if data.dqx_data is not None: 491 496 dx_val = data.dqx_data[index] 492 if data.dqy_data !=None:497 if data.dqy_data is not None: 493 498 dy_val = data.dqy_data[index] 494 499 … … 523 528 has_errors = False 524 529 if has_errors: 525 if data.dx !=None and data.dx != []:530 if data.dx is not None and data.dx != []: 526 531 out.write("<X> <Y> <dY> <dX>\n") 527 532 else: … … 532 537 for i in range(len(data.x)): 533 538 if has_errors: 534 if data.dx !=None and data.dx != []:539 if data.dx is not None and data.dx != []: 535 540 if data.dx[i] != None: 536 541 out.write("%g %g %g %g\n" % (data.x[i],
Note: See TracChangeset
for help on using the changeset viewer.