def __write_to_hdf5_light(self, filename_out, *args, **kwargs):
block_size = <NUM_LIT:0><EOL>with h5py.File(filename_out, '<STR_LIT:w>') as h5:<EOL><INDENT>h5.attrs[b'<STR_LIT>']   = b'<STR_LIT>'<EOL>h5.attrs[b'<STR_LIT>'] = b'<STR_LIT:1.0>'<EOL>if HAS_BITSHUFFLE:<EOL><INDENT>bs_compression = bitshuffle.h5.H5FILTER<EOL>bs_compression_opts = (block_size, bitshuffle.h5.H5_COMPRESS_LZ4)<EOL><DEDENT>else:<EOL><INDENT>bs_compression = None<EOL>bs_compression_opts = None<EOL>logger.warning("<STR_LIT>")<EOL><DEDENT>dset = h5.create_dataset('<STR_LIT:data>',<EOL>data=self.data,<EOL>compression='<STR_LIT>')<EOL><INDENT>compression=bs_compression,<EOL>compression_opts=bs_compression_opts)<EOL>dset_mask = h5.create_dataset('<STR_LIT>',<EOL>shape=self.file_shape,<EOL><INDENT>compression='<STR_LIT>',<EOL><DEDENT>compression=bs_compression,<EOL>compression_opts=bs_compression_opts,<EOL>dtype='<STR_LIT>')<EOL>dset.dims[<NUM_LIT:0>].label = b"<STR_LIT>"<EOL>dset.dims[<NUM_LIT:1>].label = b"<STR_LIT>"<EOL>dset.dims[<NUM_LIT:2>].label = b"<STR_LIT:time>"<EOL>dset_mask.dims[<NUM_LIT:0>].label = b"<STR_LIT>"<EOL>dset_mask.dims[<NUM_LIT:1>].label = b"<STR_LIT>"<EOL>dset_mask.dims[<NUM_LIT:2>].label = b"<STR_LIT:time>"<EOL>for key, value in self.header.items():<EOL>dset.attrs[key] = value<EOL>
Write data to HDF5 file in one go.

        Args:
            filename_out (str): Name of output file