mirror of
https://github.com/wassname/simpeg.git
synced 2026-09-09 11:34:26 +08:00
misc fixes
- 2to3 on setup.py to allow python 3 import - removed uneeded circular import in Maps.py - added missing old_div o mathutils
This commit is contained in:
@@ -11,7 +11,6 @@ from . import Utils
|
||||
import numpy as np, scipy.sparse as sp
|
||||
from scipy.sparse.linalg import LinearOperator
|
||||
from .Tests import checkDerivative
|
||||
from .PropMaps import PropMap, Property
|
||||
from numpy.polynomial import polynomial
|
||||
from scipy.interpolate import UnivariateSpline
|
||||
import warnings
|
||||
@@ -985,9 +984,3 @@ class SplineMap(IdentityMap):
|
||||
else :
|
||||
raise Exception
|
||||
return sp.csr_matrix(np.c_[g1,g2,g3])
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ from builtins import object
|
||||
import numpy as np
|
||||
import scipy.sparse as sp
|
||||
from .codeutils import isScalar
|
||||
from past.utils import old_div
|
||||
|
||||
def mkvc(x, numDims=1):
|
||||
"""Creates a vector with the number of dimension specified
|
||||
@@ -472,5 +473,3 @@ class Identity(object):
|
||||
def __ne__(self, v):return (not (1 == v))if self._positive else (not (-1 == v))
|
||||
def __ge__(self, v):return 1 >= v if self._positive else -1 >= v
|
||||
def __gt__(self, v):return 1 > v if self._positive else -1 > v
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user