packages/vaex-hdf5/vaex/hdf5/dataset.py
def write_meta(self):
        """ucds, descriptions and units are written as attributes in the hdf5 file, instead of a seperate file as
         the default :func:`Dataset.write_meta`.
         """
        with h5py.File(self.filename, "r+") as h5file_output:
            h5table_root = h5file_output[self.h5table_root_name]
            if self.description is not None:
                h5table_root.attrs["description"] = self.description
            h5columns = h5table_root if self._version == 1 else h5table_root['columns']
            for column_name in self.columns.keys():
                h5dataset = None
                if column_name in h5columns:
                    h5dataset = h5columns[column_name]
                else:
                    for group in h5columns.values():
                        if 'type' in group.attrs:
                            if group.attrs['type'] in ['csr_matrix']: 
                                for name, column in group.items():
                                    if name == column_name:
                                        h5dataset = column
                if h5dataset is None:
                    raise ValueError('column {} not found'.format(column_name))

                aliases = [key for key, value in self._column_aliases.items() if value == column_name]
                aliases.sort()
                if aliases:
                    h5dataset.attrs['alias'] = aliases[0]
                for name, values in [("ucd", self.ucds), ("unit", self.units), ("description", self.descriptions)]:
                    if column_name in values:
                        value = ensure_string(values[column_name], cast=True)
                        h5dataset.attrs[name] = value
                    else:
                        if name in h5columns.attrs:
                            del h5dataset.attrs[name]
ucds, descriptions and units are written as attributes in the hdf5 file, instead of a seperate file as
         the default :func:`Dataset.write_meta`.
         
ucds, descriptions and units are written as attributes in the hdf5 file, instead of a seperate file as
the default :func:`Dataset.write_meta`.
ucds descriptions and units are written as attributes in the hdf5 file instead of a seperate file as the default : func : ` Dataset . write_meta ` .
def write_meta(self):
        with h5py.File(self.filename, "r+") as h5file_output:
            h5table_root = h5file_output[self.h5table_root_name]
            if self.description is not None:
                h5table_root.attrs["description"] = self.description
            h5columns = h5table_root if self._version == 1 else h5table_root['columns']
            for column_name in self.columns.keys():
                h5dataset = None
                if column_name in h5columns:
                    h5dataset = h5columns[column_name]
                else:
                    for group in h5columns.values():
                        if 'type' in group.attrs:
                            if group.attrs['type'] in ['csr_matrix']: 
                                for name, column in group.items():
                                    if name == column_name:
                                        h5dataset = column
                if h5dataset is None:
                    raise ValueError('column {} not found'.format(column_name))
                aliases = [key for key, value in self._column_aliases.items() if value == column_name]
                aliases.sort()
                if aliases:
                    h5dataset.attrs['alias'] = aliases[0]
                for name, values in [("ucd", self.ucds), ("unit", self.units), ("description", self.descriptions)]:
                    if column_name in values:
                        value = ensure_string(values[column_name], cast=True)
                        h5dataset.attrs[name] = value
                    else:
                        if name in h5columns.attrs:
                            del h5dataset.attrs[name]
def write_meta ( self ) : with h5py . File ( self . filename , "r+" ) as h5file_output : h5table_root = h5file_output [ self . h5table_root_name ] if self . description is not None : h5table_root . attrs [ "description" ] = self . description h5columns = h5table_root if self . _version == 1 else h5table_root [ 'columns' ] for column_name in self . columns . keys ( ) : h5dataset = None if column_name in h5columns : h5dataset = h5columns [ column_name ] else : for group in h5columns . values ( ) : if 'type' in group . attrs : if group . attrs [ 'type' ] in [ 'csr_matrix' ] : for name , column in group . items ( ) : if name == column_name : h5dataset = column if h5dataset is None : raise ValueError ( 'column {} not found' . format ( column_name ) ) aliases = [ key for key , value in self . _column_aliases . items ( ) if value == column_name ] aliases . sort ( ) if aliases : h5dataset . attrs [ 'alias' ] = aliases [ 0 ] for name , values in [ ( "ucd" , self . ucds ) , ( "unit" , self . units ) , ( "description" , self . descriptions ) ] : if column_name in values : value = ensure_string ( values [ column_name ] , cast = True ) h5dataset . attrs [ name ] = value else : if name in h5columns . attrs : del h5dataset . attrs [ name ]
ucds, descriptions and units are written as attributes in the hdf5 file, instead of a seperate file as
the default :func:`Dataset.write_meta`.
ucds descriptions and units are written as attributes in the hdf5 file instead of a seperate file as the default : func : ` Dataset . write_meta ` .
"""ucds, descriptions and units are written as attributes in the hdf5 file, instead of a seperate file as
         the default :func:`Dataset.write_meta`.
         """
self