Put utils in their own folder. Increases organization, and everything will be available under SimPEG.utils

NOTE: if you add a new function (or file), you must register it in __init__.py for it to be available under:

e.g.
...
from utils import mkvc, …
...
from MYNEWFILE import MYNEWFUNCTION
This commit is contained in:
Rowan Cockett
2013-08-09 17:30:57 -07:00
parent 859319d300
commit b0760f577f
11 changed files with 258 additions and 258 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
import sys
sys.path.append('../../')
from SimPEG import TensorMesh, utils, LogicallyOrthogonalMesh, exampleLomGird
from SimPEG import TensorMesh, utils, LogicallyOrthogonalMesh
import numpy as np
import unittest
@@ -100,10 +100,10 @@ class OrderTest(unittest.TestCase):
else:
raise Exception('Unexpected meshType')
if self.meshDimension == 2:
X, Y = exampleLomGird([nc, nc], kwrd)
X, Y = utils.exampleLomGird([nc, nc], kwrd)
self.M = LogicallyOrthogonalMesh([X, Y])
if self.meshDimension == 3:
X, Y, Z = exampleLomGird([nc, nc, nc], kwrd)
X, Y, Z = utils.exampleLomGird([nc, nc, nc], kwrd)
self.M = LogicallyOrthogonalMesh([X, Y, Z])
return 1./nc