parameters: (self)
docstring: Check data set is consistent and has correct types
docstring_summary: Check data set is consistent and has correct types
docstring_tokens: Check data set is consistent and has correct types
function: def _check_data(self):
          """Check data set is consistent and has correct types"""
          if not isinstance(self._data, dict):
              raise ValueError("New value of S  should have a form of a dict.")
  
          for key, item in self._data.items():
              if ATOM_LABEL in key:
                  if not isinstance(item, dict):
                      raise ValueError("New value of item from S data should have a form of dictionary.")
  
                  if sorted(item.keys()) != sorted(ALL_KEYWORDS_ATOMS_S_DATA):
                      raise ValueError("Invalid structure of the dictionary.")
  
                  for order in item[S_LABEL]:
                      if not isinstance(item[S_LABEL][order], np.ndarray):
                          raise ValueError("Numpy array was expected.")
  
              elif item == "frequencies":
                  raise Exception("The Abins SData format is changed, do not put frequencies in this dict")
  
              else:
                  raise ValueError("Invalid keyword " + item)
function_tokens: def _check_data ( self ) : if not isinstance ( self . _data , dict ) : raise ValueError ( "New value of S  should have a form of a dict." ) for key , item in self . _data . items ( ) : if ATOM_LABEL in key : if not isinstance ( item , dict ) : raise ValueError ( "New value of item from S data should have a form of dictionary." ) if sorted ( item . keys ( ) ) != sorted ( ALL_KEYWORDS_ATOMS_S_DATA ) : raise ValueError ( "Invalid structure of the dictionary." ) for order in item [ S_LABEL ] : if not isinstance ( item [ S_LABEL ] [ order ] , np . ndarray ) : raise ValueError ( "Numpy array was expected." ) elif item == "frequencies" : raise Exception ( "The Abins SData format is changed, do not put frequencies in this dict" ) else : raise ValueError ( "Invalid keyword " + item )