(filename, shape, typ, fortran_order)
| 66 | |
| 67 | |
| 68 | def create_numpy_file(filename, shape, typ, fortran_order): |
| 69 | # generate random array |
| 70 | arr = rng.random_sample(shape) * 10.0 |
| 71 | arr = arr.astype(typ) |
| 72 | if fortran_order: |
| 73 | arr = np.asfortranarray(arr) |
| 74 | np.save(filename, arr) |
| 75 | |
| 76 | |
| 77 | def delete_numpy_file(filename): |
no test coverage detected