handling of derived types (orientation for the moment)

This commit is contained in:
Martin Diehl 2019-10-10 14:32:41 +02:00
parent 8fe614b0b0
commit 0eef73935e
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ class DADF5():
with h5py.File(self.filename,'r') as f:
shape = (self.Nmaterialpoints,) + np.shape(f[path[0]])[1:]
if len(shape) == 1: shape = shape +(1,)
dataset = np.full(shape,np.nan)
dataset = np.full(shape,np.nan,dtype=np.dtype(f[path[0]]))
for pa in path:
label = pa.split('/')[2]