Skip to content

Commit

Permalink
return none when numpy version etc is not sufficiently new
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Aug 26, 2012
1 parent 27c7dd2 commit f6aaf00
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -58,6 +58,7 @@ def features_dense_protocols_modular(in_data=data):
f_real-=m_real
else:
print "numpy version >= 1.5 is needed"
return None

f_real+=f_real
f_real*=f_real
Expand All @@ -70,7 +71,7 @@ def features_dense_protocols_modular(in_data=data):
mem_real=memoryview(f_real)
except NameError:
print "Python2.7 is needed for memoryview class"
pass
return None

ret_real=array(f_real)
print ret_real
Expand Down

0 comments on commit f6aaf00

Please sign in to comment.