parameters: (self, datalist, bglist, deterota)
return_statement: return result
docstring: subracts background
docstring_summary: subracts background
docstring_tokens: subracts background
function: def _subtract_background(self, datalist, bglist, deterota):
          """
          subracts background
          """
          result = dict.fromkeys(deterota)
          for angle in deterota:
              wsname = datalist[angle] + "-bg"
              api.Minus(datalist[angle], bglist[angle], OutputWorkspace=wsname)
              self.toremove.append(wsname)
              if self._is_negative(wsname):
                  message = "Background " + bglist[angle] + " is higher than Vanadium " + datalist[angle] + " signal!"
                  self.cleanup(self.toremove)
                  raise RuntimeError(message)
              result[angle] = wsname
  
          return result
function_tokens: def _subtract_background ( self , datalist , bglist , deterota ) : result = dict . fromkeys ( deterota ) for angle in deterota : wsname = datalist [ angle ] + "-bg" api . Minus ( datalist [ angle ] , bglist [ angle ] , OutputWorkspace = wsname ) self . toremove . append ( wsname ) if self . _is_negative ( wsname ) : message = "Background " + bglist [ angle ] + " is higher than Vanadium " + datalist [ angle ] + " signal!" self . cleanup ( self . toremove ) raise RuntimeError ( message ) result [ angle ] = wsname return result