(dtype)
| 50 | |
| 51 | @lru_cache(typed=True) |
| 52 | def get_square(dtype): |
| 53 | values = get_values() |
| 54 | arr = values.astype(dtype=dtype).reshape((nx, ny)) |
| 55 | |
| 56 | # adjust complex ones to have non-degenerated imagery part -- use |
| 57 | # original data transposed for that |
| 58 | if arr.dtype.kind == 'c': |
| 59 | arr += arr.T*1j |
| 60 | |
| 61 | return arr |
| 62 | |
| 63 | @lru_cache(typed=True) |
| 64 | def get_squares(): |
no test coverage detected