(self, bloch_phase=True)
| 430 | ) |
| 431 | |
| 432 | def get_curfield_as_array(self, bloch_phase=True): |
| 433 | dims = self.mode_solver.get_dims() |
| 434 | arr = np.zeros(np.prod(dims)) |
| 435 | self.mode_solver.get_curfield(arr) |
| 436 | arr = np.reshape(arr, dims) |
| 437 | |
| 438 | return MPBArray( |
| 439 | arr, self.get_lattice(), self.current_k, bloch_phase=bloch_phase |
| 440 | ) |
| 441 | |
| 442 | def get_dpwr(self, band): |
| 443 | self.get_dfield(band, False) |
no test coverage detected