MCPcopy Create free account
hub / github.com/NanoComp/meep / first_tm_gap

Method first_tm_gap

python/tests/test_mpb.py:664–667  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

662
663 def test_maximize_first_tm_gap(self):
664 def first_tm_gap(r):
665 ms.geometry = [mp.Cylinder(r, material=mp.Medium(epsilon=12))]
666 ms.run_tm()
667 return -1 * ms.retrieve_gap(1)
668
669 ms = self.init_solver()
670 ms.num_bands = 2

Callers

nothing calls this directly

Calls 1

retrieve_gapMethod · 0.80

Tested by

no test coverage detected