Changeset cee5c78 in sasview for src/sas/qtgui/Plotting/Plottables.py
- Timestamp:
- Nov 9, 2017 8:41:55 AM (7 years ago)
- Branches:
- 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
- Children:
- 7fb471d
- Parents:
- b3e8629
- git-author:
- Piotr Rozyczko <rozyczko@…> (10/27/17 03:42:57)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 08:41:55)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/Plottables.py
- Property mode changed from 100755 to 100644
rb3e8629 rcee5c78 227 227 if p.hidden == True: 228 228 continue 229 if not p.x ==None:229 if not p.x is None: 230 230 for x_i in p.x: 231 if min_value ==None or x_i < min_value:231 if min_value is None or x_i < min_value: 232 232 min_value = x_i 233 if max_value ==None or x_i > max_value:233 if max_value is None or x_i > max_value: 234 234 max_value = x_i 235 235 return min_value, max_value … … 560 560 Returns True if there is no data stored in the plottable 561 561 """ 562 if not self.x ==None and len(self.x) == 0 \563 and not self.y ==None and len(self.y) == 0:562 if not self.x is None and len(self.x) == 0 \ 563 and not self.y is None and len(self.y) == 0: 564 564 return True 565 565 return False … … 795 795 tempy = [] 796 796 tempdy = [] 797 if self.dx ==None:797 if self.dx is None: 798 798 self.dx = numpy.zeros(len(self.x)) 799 if self.dy ==None:799 if self.dy is None: 800 800 self.dy = numpy.zeros(len(self.y)) 801 801 if self.xLabel == "log10(x)": … … 825 825 tempy = [] 826 826 tempdy = [] 827 if self.dx ==None:827 if self.dx is None: 828 828 self.dx = numpy.zeros(len(self.x)) 829 if self.dy ==None:829 if self.dy is None: 830 830 self.dy = numpy.zeros(len(self.y)) 831 831 if self.yLabel == "log10(y)": … … 858 858 tempy = [] 859 859 tempdy = [] 860 if self.dx ==None:860 if self.dx is None: 861 861 self.dx = numpy.zeros(len(self.x)) 862 if self.dy ==None:862 if self.dy is None: 863 863 self.dy = numpy.zeros(len(self.y)) 864 if xmin != None and xmax !=None:864 if xmin is not None and xmax is not None: 865 865 for i in range(len(self.x)): 866 866 if self.x[i] >= xmin and self.x[i] <= xmax: … … 1202 1202 """ 1203 1203 """ 1204 if self._chisq ==None:1204 if self._chisq is None: 1205 1205 chisqTxt = r'$\chi^2=$' 1206 1206 else:
Note: See TracChangeset
for help on using the changeset viewer.