Changeset b9d74f3 in sasview for src/sas/sascalc/pr/fit/expression.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/pr/fit/expression.py
r9a5097c rb9d74f3 237 237 if independent == emptyset: 238 238 cycleset = ", ".join(str(s) for s in left) 239 raise ValueError ,"Cyclic dependencies amongst %s"%cycleset239 raise ValueError("Cyclic dependencies amongst %s"%cycleset) 240 240 241 241 # The possibly resolvable items are those that depend on the independents … … 265 265 n.sort() 266 266 items = list(items); items.sort() 267 raise Exception ,"%s expect %s to contain %s for %s"%(msg,n,items,pairs)267 raise Exception("%s expect %s to contain %s for %s"%(msg,n,items,pairs)) 268 268 for lo,hi in pairs: 269 269 if lo in n and hi in n and n.index(lo) >= n.index(hi): 270 raise Exception ,"%s expect %s before %s in %s for %s"%(msg,lo,hi,n,pairs)270 raise Exception("%s expect %s before %s in %s for %s"%(msg,lo,hi,n,pairs)) 271 271 272 272 def test_deps(): … … 288 288 try: n = order_dependencies(pairs) 289 289 except ValueError: pass 290 else: raise Exception ,"test3 expect ValueError exception for %s"%(pairs,)290 else: raise Exception("test3 expect ValueError exception for %s"%(pairs,)) 291 291 292 292 # large test for gross speed check
Note: See TracChangeset
for help on using the changeset viewer.