diff options
author | Daniel M. Pelt <D.M.Pelt@cwi.nl> | 2015-05-18 20:54:54 +0200 |
---|---|---|
committer | Daniel M. Pelt <D.M.Pelt@cwi.nl> | 2015-05-18 20:54:54 +0200 |
commit | aed157812c31df681a7ba7dd4479cb35fbce05bb (patch) | |
tree | b1dc374d60ebdf57eb79d29ef78c9e1de80a6a10 /python/astra/optomo.py | |
parent | 06494dcc8ab199e716a21aca4aa9265a1a9dfc6a (diff) | |
download | astra-aed157812c31df681a7ba7dd4479cb35fbce05bb.tar.gz astra-aed157812c31df681a7ba7dd4479cb35fbce05bb.tar.bz2 astra-aed157812c31df681a7ba7dd4479cb35fbce05bb.tar.xz astra-aed157812c31df681a7ba7dd4479cb35fbce05bb.zip |
Fix range import for old six versions
Diffstat (limited to 'python/astra/optomo.py')
-rw-r--r-- | python/astra/optomo.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/python/astra/optomo.py b/python/astra/optomo.py index 0c37353..2937d9c 100644 --- a/python/astra/optomo.py +++ b/python/astra/optomo.py @@ -32,7 +32,13 @@ from . import creators from . import algorithm from . import functions import numpy as np -from six.moves import range, reduce +from six.moves import reduce +try: + from six.moves import range +except ImportError: + # six 1.3.0 + from six.moves import xrange as range + import operator import scipy.sparse.linalg |