Changeset 7432acb in sasview for src/sas/sasgui/guiframe/data_processor.py
- Timestamp:
- Apr 9, 2017 4:11:31 AM (7 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:
- 45dffa69
- Parents:
- ac07a3a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/data_processor.py
rac07a3a r7432acb 1028 1028 label += create_label(col_name, 1029 1029 int(new_row) + 1, None) 1030 if row_min != None and row_max !=None:1030 if row_min is not None and row_max is not None: 1031 1031 if index == 0: 1032 1032 label += create_label(col_name, … … 1374 1374 wx.PostEvent(self.parent.parent, StatusEvent(status=msg, info="error")) 1375 1375 return 1376 if dy !=None and (len(y) != len(dy)):1376 if dy is not None and (len(y) != len(dy)): 1377 1377 msg = "Need same length for Y and dY axis and both greater than 0" 1378 1378 msg += " to plot.\n" … … 1572 1572 """ 1573 1573 1574 if label !=None:1574 if label is not None: 1575 1575 tcrtl_label.SetValue(str(label)) 1576 if title !=None:1576 if title is not None: 1577 1577 tcrtl_title.SetValue(str(title)) 1578 1578 … … 1685 1685 # I Believe this is no longer used now that we have removed the 1686 1686 # edit menu from the menubar - PDB July 12, 2015 1687 if event !=None:1687 if event is not None: 1688 1688 event.Skip() 1689 1689 pos = self.panel.notebook.GetSelection() … … 1697 1697 # I Believe this is no longer used now that we have removed the 1698 1698 # edit menu from the menubar - PDB July 12, 2015 1699 if event !=None:1699 if event is not None: 1700 1700 event.Skip() 1701 1701 pos = self.panel.notebook.GetSelection() … … 1739 1739 pos = self.panel.notebook.GetSelection() 1740 1740 grid = self.panel.notebook.GetPage(pos) 1741 has_data = (grid.data !=None and grid.data != {})1741 has_data = (grid.data is not None and grid.data != {}) 1742 1742 self.open_excel_menu.Enable(has_data) 1743 1743 self.save_menu.Enable(has_data) … … 1822 1822 path = dlg.GetPath() 1823 1823 dlg.Destroy() 1824 if path !=None:1824 if path is not None: 1825 1825 if self.parent is not None: 1826 1826 data = grid.get_grid_view() … … 2007 2007 path = dlg.GetPath() 2008 2008 dlg.Destroy() 2009 if path !=None:2009 if path is not None: 2010 2010 if self.parent is not None and self.data is not None: 2011 2011 self.parent.write_batch_tofile(data=self.data,
Note: See TracChangeset
for help on using the changeset viewer.