(sim: mp.Simulation)
| 82 | |
| 83 | |
| 84 | def _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 | |
| 92 | def _make_at_least_nd(x: onp.ndarray, dims: int = 3) -> onp.ndarray: |
no test coverage detected