Remove support for legacy numarray and Numeric packages. Now imports successfully with numpy.

This commit is contained in:
Robert Smallshire
2011-10-18 18:34:03 +02:00
parent deaa39982f
commit a7842ab28b
+5 -19
View File
@@ -31,25 +31,11 @@ segy.verbose : Amount of verbose information to the screen
import struct, sys # modified by A Squelch
pref_numeric_module='numarray' # FAST ON LARGE FILES
#pref_numeric_module='Numeric'
if (pref_numeric_module=='Numeric'):
# IMPORT SEPCIFIC FUNCTIONS FROM Numeric
print('SegyPY : Using Numeric module')
from Numeric import transpose
from Numeric import resize
from Numeric import reshape
from Numeric import zeros
from Numeric import arange
else:
# IMPORT SEPCIFIC FUNCTIONS FROM numarray
print('SegyPY : Using numarray module')
from numarray import transpose
from numarray import resize
from numarray import reshape
from numarray import zeros
from numarray import arange
from numpy import transpose
from numpy import resize
from numpy import reshape
from numpy import zeros
from numpy import arange
# SOME GLOBAL PARAMETERS
version='0.3.1' # modified by A Squelch