mirror of
https://github.com/wassname/segpy.git
synced 2026-07-20 12:40:38 +08:00
Remove support for legacy numarray and Numeric packages. Now imports successfully with numpy.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user