Skip to content

Commit d6aa3f0

Browse files
committed
working on updating test input files for python changes
1 parent fe1185c commit d6aa3f0

File tree

19 files changed

+24
-25
lines changed

19 files changed

+24
-25
lines changed

examples/capacitance/cap1d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from ds import *
15+
from devsim import *
1616
device="MyDevice"
1717
region="MyRegion"
1818

examples/capacitance/cap2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from ds import *
15+
from devsim import *
1616
device="MyDevice"
1717
region="MyRegion"
1818

python_packages/Klaassen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from ds import *
15+
from devsim import *
1616
from python_packages.model_create import *
1717

1818
def Set_Mobility_Parameters(device, region):

python_packages/model_create.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from ds import *
15+
from devsim import *
1616
debug = False
1717
def CreateSolution(device, region, name):
1818
'''

python_packages/mos_physics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from ds import *
15+
from devsim import *
1616
from python_packages.model_create import *
1717

1818
def CreateElementElectronContinuityEquation(device, region, current_model):

python_packages/pythonmesh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ds import *
1+
from devsim import *
22

33
def parse_gmsh_file(file):
44
sections=set(['$MeshFormat', '$PhysicalNames', '$Nodes', '$Elements'])

python_packages/ramp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import sys
1616
sys.path.append('../../python_packages')
17-
from ds import *
17+
from devsim import *
1818
import ds
1919
from simple_physics import *
2020

python_packages/simple_physics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
from simple_dd import *
16-
from ds import *
16+
from devsim import *
1717
#TODO: make this a class so that paramters can be changed
1818
contactcharge_node="contactcharge_node"
1919
contactcharge_edge="contactcharge_edge"

testing/cap2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#### cap2.py
1717
#### tests physics of cap made of two insulating regions
1818
####
19-
from ds import *
19+
from devsim import *
2020
device="MyDevice"
2121
interface="MySiOx"
2222
regions =("MyOxRegion", "MySiRegion")
@@ -204,11 +204,11 @@ def get_ilist():
204204
solve(type="dc", absolute_error=1.0, relative_error=1e-10, maximum_iterations=30)
205205

206206
# test exception
207-
import ds
207+
import devsim
208208
node_model(device=device, region="MySiRegion", name="test", equation="log(-1)")
209209
try:
210210
print(get_node_model_values(device=device, region="MySiRegion", name="test"))
211-
except ds.error as x:
211+
except devsim.error as x:
212212
print(x)
213213
print("The DEVSIM FATAL message is part of the test. The FPE exception was caught and the program will terminate normally.")
214214

testing/cap3.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#### cap2.py
1717
#### tests physics of cap made of two insulating regions
1818
####
19-
from ds import *
19+
from devsim import *
2020
device="MyDevice"
2121
interface="MySiOx"
2222
regions =("MyOxRegion", "MySiRegion")
@@ -163,8 +163,6 @@ def get_ilist():
163163
cl = get_clist()
164164
il = get_ilist()
165165

166-
print()
167-
print()
168166

169167
for i in rl:
170168
delete_equation(device=i['device'], region=i['region'], name=i['name'])
@@ -204,11 +202,11 @@ def get_ilist():
204202
solve(type="dc", absolute_error=1.0, relative_error=1e-10, maximum_iterations=30)
205203

206204
# test exception
207-
import ds
205+
import devsim
208206
node_model(device=device, region="MySiRegion", name="test", equation="log(-1)")
209207
try:
210208
print(get_node_model_values(device=device, region="MySiRegion", name="test"))
211-
except ds.error as x:
209+
except devsim.error as x:
212210
print(x)
213211
print("The DEVSIM FATAL message is part of the test. The FPE exception was caught and the program will terminate normally.")
214212

0 commit comments

Comments
 (0)