Changeset b9d74f3 in sasview for src/sas/sasgui/perspectives/corfunc/corfunc_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/corfunc/corfunc_state.py
r7432acb rb9d74f3 284 284 root, ext = os.path.splitext(basename) 285 285 if not ext.lower() in self.ext: 286 raise IOError , "{} is not a supported file type".format(ext)286 raise IOError("{} is not a supported file type".format(ext)) 287 287 tree = etree.parse(path, parser=etree.ETCompatXMLParser()) 288 288 root = tree.getroot() … … 300 300 # File not found 301 301 msg = "{} is not a valid file path or doesn't exist".format(path) 302 raise IOError , msg302 raise IOError(msg) 303 303 304 304 if len(output) == 0: … … 324 324 msg = ("The CanSAS writer expects a Data1D instance. {} was " 325 325 "provided").format(datainfo.__class__.__name__) 326 raise RuntimeError , msg326 raise RuntimeError(msg) 327 327 if datainfo.title is None or datainfo.title == '': 328 328 datainfo.title = datainfo.name
Note: See TracChangeset
for help on using the changeset viewer.