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)
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)
def test_int64_flat(self): arr = np.arange(27) arr_str = numpy2str(arr) arr_loaded = str2numpy(arr_str) self._arrays_eq(arr, arr_loaded)