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

Function _compute_components

python/adjoint/utils.py:84–89  ·  view source on GitHub ↗
(sim: mp.Simulation)

Source from the content-addressed store, hash-verified

82
83
84def _compute_components(sim: mp.Simulation) -> List[int]:
85 return (
86 _ADJOINT_FIELD_COMPONENTS_CYL
87 if _check_if_cylindrical(sim)
88 else _ADJOINT_FIELD_COMPONENTS
89 )
90
91
92def _make_at_least_nd(x: onp.ndarray, dims: int = 3) -> onp.ndarray:

Callers 1

Calls 1

_check_if_cylindricalFunction · 0.85

Tested by

no test coverage detected