Пример #1
0
 def test_int64_3d(self):
     arr = np.arange(27)
     arr = arr.reshape((3, 3, 3))
     arr_str = numpy2str(arr)
     arr_loaded = str2numpy(arr_str)
     self._arrays_eq(arr, arr_loaded)
Пример #2
0
 def test_float_flat(self):
     arr = np.arange(27, dtype="float")
     arr_str = numpy2str(arr)
     arr_loaded = str2numpy(arr_str)
     self._arrays_eq(arr, arr_loaded)
Пример #3
0
 def test_int64_flat(self):
     arr = np.arange(27)
     arr_str = numpy2str(arr)
     arr_loaded = str2numpy(arr_str)
     self._arrays_eq(arr, arr_loaded)