From 330a02a7a46c87dd1f0731f2dddf22ff00fc21b0 Mon Sep 17 00:00:00 2001 From: froejdh_e Date: Thu, 12 Jun 2025 17:31:06 +0200 Subject: [PATCH] added numpy test files --- numpy/test_1d_int32.npy | 3 +++ numpy/test_3d_double.npy | 3 +++ numpy/test_numpy_file.npy | 3 +++ numpy/write_test_files.py | 12 ++++++++++++ 4 files changed, 21 insertions(+) create mode 100644 numpy/test_1d_int32.npy create mode 100644 numpy/test_3d_double.npy create mode 100644 numpy/test_numpy_file.npy create mode 100644 numpy/write_test_files.py diff --git a/numpy/test_1d_int32.npy b/numpy/test_1d_int32.npy new file mode 100644 index 0000000..079db20 --- /dev/null +++ b/numpy/test_1d_int32.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ee5a0000237abb3ebffc65b6b5125ec806a02f3f889bd2fb48141107ebfce4c8 +size 168 diff --git a/numpy/test_3d_double.npy b/numpy/test_3d_double.npy new file mode 100644 index 0000000..495e95b --- /dev/null +++ b/numpy/test_3d_double.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c3e8dbf2211d7caaed51eb0f2b32aec65db368b382e4b845262472b4edd50413 +size 368 diff --git a/numpy/test_numpy_file.npy b/numpy/test_numpy_file.npy new file mode 100644 index 0000000..fa40320 --- /dev/null +++ b/numpy/test_numpy_file.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce7f9145db365554864b5a7e8fd2f569f63275f8ae7c1a8bc882847e76e149eb +size 125128 diff --git a/numpy/write_test_files.py b/numpy/write_test_files.py new file mode 100644 index 0000000..ba3f855 --- /dev/null +++ b/numpy/write_test_files.py @@ -0,0 +1,12 @@ +import numpy as np + + +arr = np.arange(10, dtype = np.int32) +np.save('test_1d_int32.npy', arr) + +arr2 = np.zeros((3,2,5), dtype = np.float64) +arr2[0,0,0] = 1.0 +arr2[0,0,1] = 2.0 +arr2[0,1,0] = 72.0 +arr2[2,0,4] = 63.0 +np.save('test_3d_double.npy', arr2) \ No newline at end of file