(self)
| 162 | |
| 163 | class TestAmpFileFunc(unittest.TestCase): |
| 164 | def create_h5data(self): |
| 165 | N = 100 |
| 166 | M = 200 |
| 167 | |
| 168 | self.amp_data = np.zeros((N, M, 1), dtype=np.complex128) |
| 169 | |
| 170 | for i in range(N): |
| 171 | for j in range(M): |
| 172 | v = mp.Vector3((i / N) * 0.3 - 0.15, (j / M) * 0.2 - 0.1) |
| 173 | self.amp_data[i, j] = amp_fun(v) |
| 174 | |
| 175 | def init_and_run(self, test_type): |
| 176 | cell = mp.Vector3(1, 1) |
no test coverage detected