Changeset b9d74f3 in sasview for src/sas/sasgui/plottools/plottables.py
- Timestamp:
- Apr 20, 2017 6:29:34 AM (8 years ago)
- Children:
- 0cc77d8
- Parents:
- b636dfc5
- git-author:
- Andrew Nelson <andyfaff@…> (04/20/17 06:25:57)
- git-committer:
- Andrew Nelson <andyfaff@…> (04/20/17 06:29:34)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/plottools/plottables.py
r45dffa69 rb9d74f3 386 386 387 387 """ 388 raise NotImplemented , "Not a valid transform"388 raise NotImplemented("Not a valid transform") 389 389 390 390 # Related issues … … 686 686 msg = "Plottable.View: Given x and dx are not" 687 687 msg += " of the same length" 688 raise ValueError , msg688 raise ValueError(msg) 689 689 # Check length of y array 690 690 if not len(y) == len(x): 691 691 msg = "Plottable.View: Given y " 692 692 msg += "and x are not of the same length" 693 raise ValueError , msg693 raise ValueError(msg) 694 694 695 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)) 698 raise ValueError , msg698 raise ValueError(msg) 699 699 self.x = [] 700 700 self.y = [] … … 731 731 msg = "Plottable.View: transformed x " 732 732 msg += "and y are not of the same length" 733 raise ValueError , msg733 raise ValueError(msg) 734 734 if has_err_x and not (len(self.x) == len(self.dx)): 735 735 msg = "Plottable.View: transformed x and dx" 736 736 msg += " are not of the same length" 737 raise ValueError , msg737 raise ValueError(msg) 738 738 if has_err_y and not (len(self.y) == len(self.dy)): 739 739 msg = "Plottable.View: transformed y" 740 740 msg += " and dy are not of the same length" 741 raise ValueError , msg741 raise ValueError(msg) 742 742 # Check that negative values are not plot on x and y axis for 743 743 # log10 transformation … … 1105 1105 Plottable.__init__(self) 1106 1106 msg = "Theory1D is no longer supported, please use Data1D and change symbol.\n" 1107 raise DeprecationWarning , msg1107 raise DeprecationWarning(msg) 1108 1108 1109 1109 class Fit1D(Plottable):
Note: See TracChangeset
for help on using the changeset viewer.