- Timestamp:
- Apr 9, 2017 6:30:10 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:
- fca1f50
- Parents:
- 7432acb
- git-author:
- Andrew Nelson <andyfaff@…> (04/09/17 06:26:55)
- git-committer:
- Andrew Nelson <andyfaff@…> (04/09/17 06:30:10)
- Location:
- src/sas
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/pr/invertor.py
rac07a3a r45dffa69 658 658 file.write("#has_bck=0\n") 659 659 file.write("#alpha_estimate=%g\n" % self.suggested_alpha) 660 if not self.out isNone:660 if self.out is not None: 661 661 if len(self.out) == len(self.cov): 662 662 for i in range(len(self.out)): -
src/sas/sasgui/guiframe/local_perspectives/plotting/masking.py
r7432acb r45dffa69 269 269 Erase new mask from old mask 270 270 """ 271 if not self.slicer isNone:271 if self.slicer is not None: 272 272 self.slicer_mask = self.slicer.update() 273 273 mask = self.data.mask … … 307 307 Clear the slicer on the plot 308 308 """ 309 if not self.slicer isNone:309 if self.slicer is not None: 310 310 self.slicer.clear() 311 311 self.subplot.figure.canvas.draw() -
src/sas/sasgui/plottools/plottable_interactor.py
r7432acb r45dffa69 100 100 """ 101 101 """ 102 if not self.marker isNone:102 if self.marker is not None: 103 103 self.base.connect.clear([self.marker]) 104 104 self.color = self._color(color) … … 115 115 """ 116 116 """ 117 if not self.marker isNone:117 if self.marker is not None: 118 118 self.base.connect.clear([self.marker]) 119 119 self.color = self._color(color) … … 133 133 """ 134 134 """ 135 if not self.marker isNone:135 if self.marker is not None: 136 136 self.base.connect.clear([self.marker]) 137 137 self.color = self._color(color) -
src/sas/sasgui/plottools/plottables.py
r7432acb r45dffa69 562 562 Returns True if there is no data stored in the plottable 563 563 """ 564 if not self.x is None and len(self.x) == 0 \565 and not self.y is None and len(self.y) == 0:564 if (self.x is not None and len(self.x) == 0 565 and self.y is not None and len(self.y) == 0): 566 566 return True 567 567 return False … … 683 683 684 684 if(x is not None) and (y is not None): 685 if not dx isNone and not len(dx) == 0 and not len(x) == len(dx):685 if dx is not None and not len(dx) == 0 and not len(x) == len(dx): 686 686 msg = "Plottable.View: Given x and dx are not" 687 687 msg += " of the same length" … … 693 693 raise ValueError, msg 694 694 695 if not dy isNone and not len(dy) == 0 and not len(y) == len(dy):695 if dy is not None and not len(dy) == 0 and not len(y) == len(dy): 696 696 msg = "Plottable.View: Given y and dy are not of the same " 697 697 msg += "length: len(y)=%s, len(dy)=%s" % (len(y), len(dy))
Note: See TracChangeset
for help on using the changeset viewer.