def _writeoutArrays(arrlist, fidstr, h5F): for i in range(len(arrlist)): idstr = fidstr + str(i) arr = arrlist[i] from DeepJetCore.compiled.c_readArrThreaded import writeArray if arr.dtype != 'float32': arr = arr.astype('float32') writeArray(arr.ctypes.data, final_output_file[:-4] + fidstr + '.' + str(i), list(arr.shape))
def _writeoutArrays(arrlist, fidstr, h5F): for i in range(len(arrlist)): idstr = fidstr + str(i) arr = arrlist[i] if "meta" in fileprefix[-4:]: from DeepJetCore.compiled.c_readArrThreaded import writeArray if arr.dtype != 'float32': arr = arr.astype('float32') writeArray(arr.ctypes.data, fileprefix[:-4] + fidstr + '.' + str(i), list(arr.shape)) else: h5F.create_dataset(idstr, data=arr, compression="lzf")