Skip to content

Commit

Permalink
fix test units
Browse files Browse the repository at this point in the history
  • Loading branch information
jsenellart committed May 7, 2022
1 parent c407364 commit 5ed9ac5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions testsuite/metal_coupler.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def test_metal_coupler(self):

guided = 0
campmax = 0
for k in np.arange(0,nom,1):
for k in range(0,nom,1):
camp = abs(waveguide.mode(k).field(Coord(d_sub+dclad+\
guide_thickness/2,0,0)).E1())
if campmax < camp:
Expand All @@ -89,7 +89,7 @@ def test_metal_coupler(self):

# Set input for calculating the fields.

inc = zeros(N())
inc = np.zeros(N())
inc[guided] = 1
stack.set_inc_field(inc)

Expand Down
2 changes: 1 addition & 1 deletion testsuite/stack0.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def teststack0(self):

s = Stack(AlGaAs(0) + air(1) + AlGaAs(0))

inc = zeros(N())
inc = np.zeros(N())
inc[0] = 1
s.set_inc_field(inc)

Expand Down

0 comments on commit 5ed9ac5

Please sign in to comment.