Changeset b9d74f3 in sasview for src/sas/sascalc/dataloader/readers/sesans_reader.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/sascalc/dataloader/readers/sesans_reader.py
r9a5097c rb9d74f3 57 57 input_f = open(path,'rb') 58 58 except: 59 raise RuntimeError , "sesans_reader: cannot open %s" % path59 raise RuntimeError("sesans_reader: cannot open %s" % path) 60 60 buff = input_f.read() 61 61 lines = buff.splitlines() … … 158 158 159 159 if len(output.x) < 1: 160 raise RuntimeError , "%s is empty" % path160 raise RuntimeError("%s is empty" % path) 161 161 return output 162 162 163 163 else: 164 raise RuntimeError , "%s is not a file" % path164 raise RuntimeError("%s is not a file" % path) 165 165 return None 166 166
Note: See TracChangeset
for help on using the changeset viewer.