(self)
| 2545 | mp.set_dimensions(self._infer_dimensions(self.k_point)) |
| 2546 | |
| 2547 | def has_mu(self): |
| 2548 | def _has_mu(medium): |
| 2549 | if not isinstance(medium, mp.Medium): |
| 2550 | return False |
| 2551 | return medium.mu_diag != mp.Vector3( |
| 2552 | 1, 1, 1 |
| 2553 | ) or medium.mu_offdiag != mp.Vector3(0j, 0j, 0j) |
| 2554 | |
| 2555 | for go in self.geometry: |
| 2556 | if _has_mu(go.material): |
| 2557 | return True |
| 2558 | |
| 2559 | for mat in self.extra_materials: |
| 2560 | if _has_mu(mat): |
| 2561 | return True |
| 2562 | |
| 2563 | return _has_mu(self.default_material) |
| 2564 | |
| 2565 | def get_estimated_memory_usage(self): |
| 2566 | if self.fields is None: |
no outgoing calls