Skip to content

Commit

Permalink
Fix for disabling numpy requirement correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Smith committed May 5, 2015
1 parent fb43940 commit a949eab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tradedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@
import numpy.linalg
haveNumpy = True
except (KeyError, ImportError):
pass
if not haveNumpy:
class numpy(object):
array = False
float32 = False
Expand Down

0 comments on commit a949eab

Please sign in to comment.