Changeset ac07a3a in sasview for src/sas/sasgui/guiframe
- Timestamp:
- Apr 9, 2017 6:08:43 AM (8 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 7432acb
- Parents:
- 235f514
- Location:
- src/sas/sasgui/guiframe
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/data_processor.py
r235f514 rac07a3a 1017 1017 if index - 1 >= 0: 1018 1018 new_row, _ = temp_list[index - 1] 1019 if n ot new_row isNone and new_row != ' ':1019 if new_row is not None and new_row != ' ': 1020 1020 label += create_label(col_name, None, 1021 1021 int(new_row) + 1) … … 1025 1025 if index + 1 < len(temp_list): 1026 1026 new_row, _ = temp_list[index + 1] 1027 if n ot new_row isNone:1027 if new_row is not None: 1028 1028 label += create_label(col_name, 1029 1029 int(new_row) + 1, None) -
src/sas/sasgui/guiframe/local_perspectives/plotting/Plotter1D.py
r235f514 rac07a3a 618 618 # add menu of other plugins 619 619 item_list = self.parent.get_current_context_menu(self) 620 if ( not item_list is None) and (not len(item_list) == 0):620 if (item_list is not None) and (len(item_list)): 621 621 for item, wx_id in zip(item_list, [ids.next() for i in range(len(item_list))]): 622 623 622 try: 624 623 plot_menu.Append(wx_id, item[0], name) -
src/sas/sasgui/guiframe/local_perspectives/plotting/Plotter2D.py
r235f514 rac07a3a 320 320 if len(self.data2D.detector) <= 1: 321 321 item_list = self.parent.get_current_context_menu(self) 322 if ( not item_list is None) and (not len(item_list) == 0) and\323 self.data2D.name.split(" ")[0] != 'Residuals' :322 if ((item_list is not None) and len(item_list) and 323 self.data2D.name.split(" ")[0] != 'Residuals'): 324 324 for item, wx_id in zip(item_list, [ids.next() for i in range(len(item_list))]): 325 325 try: … … 533 533 """ 534 534 ## Clear current slicer 535 if not self.slicer isNone:535 if self.slicer is not None: 536 536 self.slicer.clear() 537 537 ## Create a new slicer … … 719 719 Clear the slicer on the plot 720 720 """ 721 if not self.slicer isNone:721 if self.slicer is not None: 722 722 self.slicer.clear() 723 723 self.subplot.figure.canvas.draw() -
src/sas/sasgui/guiframe/local_perspectives/plotting/masking.py
r235f514 rac07a3a 249 249 Add new mask to old mask 250 250 """ 251 if not self.slicer isNone:251 if self.slicer is not None: 252 252 data = Data2D() 253 253 data = self.data
Note: See TracChangeset
for help on using the changeset viewer.