Skip to content

Commit

Permalink
remove cutoff=0 from unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oskooi committed Dec 30, 2021
1 parent bb9f34e commit e2eae75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tests/test_dump_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def test_load_dump_chunk_layout_sim_3d(self):
def _load_dump_fields_2d(self, single_parallel_file=True):
resolution = 50
cell = mp.Vector3(5, 5)
sources = mp.Source(src=mp.GaussianSource(1, fwidth=0.4, cutoff=0), center=mp.Vector3(), component=mp.Ez)
sources = mp.Source(src=mp.GaussianSource(1, fwidth=0.4), center=mp.Vector3(), component=mp.Ez)
one_by_one = mp.Vector3(1, 1, mp.inf)
geometry = [mp.Block(material=mp.Medium(index=3.2), center=mp.Vector3(), size=one_by_one),
mp.Block(material=mp.Medium(epsilon=13), center=mp.Vector3(1), size=one_by_one)]
Expand Down Expand Up @@ -262,7 +262,7 @@ def test_load_dump_fields_sharded_2d(self):
def _load_dump_fields_3d(self, single_parallel_file=True):
resolution = 15
cell = mp.Vector3(2.6, 2.2, 2.3)
sources = mp.Source(src=mp.GaussianSource(1, fwidth=0.4, cutoff=0), center=mp.Vector3(), component=mp.Hx)
sources = mp.Source(src=mp.GaussianSource(1, fwidth=0.4), center=mp.Vector3(), component=mp.Hx)
one_by_one_by_one = mp.Vector3(1, 1, 1)
geometry = [mp.Block(material=mp.Medium(index=2.4), center=mp.Vector3(), size=one_by_one_by_one),
mp.Block(material=mp.Medium(epsilon=7.9), center=mp.Vector3(1), size=one_by_one_by_one)]
Expand Down

0 comments on commit e2eae75

Please sign in to comment.