parameters: (self, group=None)
docstring: Saves attributes to an hdf file.
          :param group: group to which attributes should be saved.
docstring_summary: Saves attributes to an hdf file.
          :param group: group to which attributes should be saved.
docstring_tokens: Saves attributes to an hdf file . : param group : group to which attributes should be saved .
function: def _save_attributes(self, group=None):
          """
          Saves attributes to an hdf file.
          :param group: group to which attributes should be saved.
          """
          for name in self._attributes:
              if isinstance(self._attributes[name], (np.int64, int, np.float64, float, str, bytes, bool)):
                  group.attrs[name] = self._attributes[name]
              else:
                  raise ValueError("Invalid value of attribute. String, "
                                   "int, bool or bytes was expected! "
                                   + name
                                   + "= (invalid type : %s) " % type(self._attributes[name]))
function_tokens: def _save_attributes ( self , group = None ) : for name in self . _attributes : if isinstance ( self . _attributes [ name ] , ( np . int64 , int , np . float64 , float , str , bytes , bool ) ) : group . attrs [ name ] = self . _attributes [ name ] else : raise ValueError ( "Invalid value of attribute. String, " "int, bool or bytes was expected! " + name + "= (invalid type : %s) " % type ( self . _attributes [ name ] ) )