Commit 9de1ae87 authored by Theo Steininger's avatar Theo Steininger

Removed checks for h5py.

parent c0f44792
......@@ -1916,7 +1916,6 @@ class _slicing_distributor(distributor):
else:
return local_data.reshape(temp_local_shape)
if 'h5py' in gdi:
def save_data(self, data, alias, path=None, overwriteQ=True):
comm = self.comm
h5py_parallel = h5py.get_config().mpi
......@@ -1984,19 +1983,6 @@ class _slicing_distributor(distributor):
def _data_to_hdf5(self, hdf5_dataset, data):
hdf5_dataset[self.local_start:self.local_end] = data
else:
def save_data(self, *args, **kwargs):
raise ImportError(about_cstring(
"ERROR: h5py is not available"))
def load_data(self, *args, **kwargs):
raise ImportError(about_cstring(
"ERROR: h5py is not available"))
def _data_to_hdf5(self, *args, **kwargs):
raise ImportError(about_cstring(
"ERROR: h5py is not available"))
def get_iter(self, d2o):
return d2o_slicing_iter(d2o)
......@@ -2284,7 +2270,6 @@ class _not_distributor(distributor):
a = obj.get_local_data(copy=False)
return np.searchsorted(a=a, v=v, side=side)
if 'h5py' in gdi:
def save_data(self, data, alias, path=None, overwriteQ=True):
comm = self.comm
h5py_parallel = h5py.get_config().mpi
......@@ -2354,19 +2339,6 @@ class _not_distributor(distributor):
if self.comm.rank == 0:
hdf5_dataset[:] = data
else:
def save_data(self, *args, **kwargs):
raise ImportError(about_cstring(
"ERROR: h5py is not available"))
def load_data(self, *args, **kwargs):
raise ImportError(about_cstring(
"ERROR: h5py is not available"))
def _data_to_hdf5(self, *args, **kwargs):
raise ImportError(about_cstring(
"ERROR: h5py is not available"))
def get_iter(self, d2o):
return d2o_not_iter(d2o)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment