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

Method __init__

python/adjoint/objective.py:550–557  ·  view source on GitHub ↗

Initialize a differentiable LDOS instance Args: sim: the Meep simulation object of the problem.

(self, sim: mp.Simulation, **kwargs)

Source from the content-addressed store, hash-verified

548 """A differentiable LDOS"""
549
550 def __init__(self, sim: mp.Simulation, **kwargs):
551 """Initialize a differentiable LDOS instance
552
553 Args:
554 sim: the Meep simulation object of the problem.
555 """
556 super().__init__(sim)
557 self.srckwarg = kwargs
558
559 def register_monitors(self, frequencies):
560 self._frequencies = np.asarray(frequencies)

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected