Changeset b9d74f3 in sasview for src/sas/sasgui/perspectives/pr/pr.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/perspectives/pr/pr.py
r7432acb rb9d74f3 149 149 msg = "Pr.set_state: datainfo parameter cannot " 150 150 msg += "be None in standalone mode" 151 raise RuntimeError , msg151 raise RuntimeError(msg) 152 152 153 153 # Ensuring that plots are coordinated correctly … … 450 450 # Notify the user if we could not read the file 451 451 if dataread is None: 452 raise RuntimeError , "Invalid data"452 raise RuntimeError("Invalid data") 453 453 454 454 x = None … … 470 470 if dataread is None: 471 471 return x, y, err 472 raise RuntimeError , "This tool can only read 1D data"472 raise RuntimeError("This tool can only read 1D data") 473 473 474 474 self._current_file_data.x = x … … 849 849 status = "Problem reading data: %s" % sys.exc_value 850 850 wx.PostEvent(self.parent, StatusEvent(status=status)) 851 raise RuntimeError , status851 raise RuntimeError(status) 852 852 853 853 # If the file contains nothing, just return 854 854 if pr is None: 855 raise RuntimeError , "Loaded data is invalid"855 raise RuntimeError("Loaded data is invalid") 856 856 857 857 self.pr = pr … … 903 903 msg = "pr.save_data: the data being saved is not a" 904 904 msg += " sas.data_info.Data1D object" 905 raise RuntimeError , msg905 raise RuntimeError(msg) 906 906 907 907 def setup_plot_inversion(self, alpha, nfunc, d_max, q_min=None, q_max=None,
Note: See TracChangeset
for help on using the changeset viewer.