Changeset 7432acb in sasview for src/sas/sasgui/plottools/plottables.py
- Timestamp:
- Apr 9, 2017 6: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/plottools/plottables.py
rac07a3a r7432acb 682 682 has_err_y = not (dy is None or len(dy) == 0) 683 683 684 if(x != None) and (y !=None):684 if(x is not None) and (y is not None): 685 685 if not dx is None and not len(dx) == 0 and not len(x) == len(dx): 686 686 msg = "Plottable.View: Given x and dx are not" … … 864 864 if self.dy is None: 865 865 self.dy = np.zeros(len(self.y)) 866 if xmin != None and xmax !=None:866 if xmin is not None and xmax is not None: 867 867 for i in range(len(self.x)): 868 868 if self.x[i] >= xmin and self.x[i] <= xmax:
Note: See TracChangeset
for help on using the changeset viewer.