Changeset b9d74f3 in sasview for src/sas/sasgui/perspectives/invariant/invariant_state.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/invariant/invariant_state.py
r7432acb rb9d74f3 365 365 msg = "InvariantSate no longer supports non-CanSAS" 366 366 msg += " format for invariant files" 367 raise RuntimeError , msg367 raise RuntimeError(msg) 368 368 369 369 if node.get('version')\ … … 739 739 output.append(sas_entry) 740 740 else: 741 raise RuntimeError , "%s is not a file" % path741 raise RuntimeError("%s is not a file" % path) 742 742 743 743 # Return output consistent with the loader's api … … 785 785 msg = "The cansas writer expects a Data1D" 786 786 msg += " instance: %s" % str(datainfo.__class__.__name__) 787 raise RuntimeError , msg787 raise RuntimeError(msg) 788 788 # make sure title and data run is filled up. 789 789 if datainfo.title is None or datainfo.title == '':
Note: See TracChangeset
for help on using the changeset viewer.