From 13bf29fb84d0fc6e5686227d00e82e72dab4518e Mon Sep 17 00:00:00 2001 From: Liam Gray Date: Fri, 26 Jul 2024 13:28:56 -0700 Subject: [PATCH] feat(memh5): remove byte order check in 'deep_group_copy' This was originally required to fix a bug in mpi4py/mpi4py#177 This bug has now been fixed in mpi4py/mpi4py#179 --- caput/memh5.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/caput/memh5.py b/caput/memh5.py index f21d42fa..89660346 100644 --- a/caput/memh5.py +++ b/caput/memh5.py @@ -2655,12 +2655,6 @@ def _prepare_dataset(dset): # Unicode characters before writing data = check_unicode(entry) - if not to_file: - # reading from h5py can result in arrays with explicit endian set - # which mpi4py cannot handle when Bcasting memh5.Group - # needed until fixed: https://github.com/mpi4py/mpi4py/issues/177 - data = ensure_native_byteorder(data) - dset_args = {"dtype": data.dtype, "shape": data.shape, "data": data} # If we're copying memory to memory we can allow distributed datasets if not to_file and isinstance(dset, MemDatasetDistributed):