original_docstring: 
          Manage the setting of OMP_NUM_THREADS to most efficiently
          utilize parallelization.
          
docstring: Manage the setting of OMP_NUM_THREADS to most efficiently
  utilize parallelization.
docstring_tokens: Manage the setting of OMP_NUM_THREADS to most efficiently utilize parallelization .
code: def handle_OMP(self):
          '''
          Manage the setting of OMP_NUM_THREADS to most efficiently
          utilize parallelization.
          '''
          if self.verbose: print 'handling OMP_NUM_THREADS bash variable'
          if self.nproc == None:
              # on init, the variable is not set
              self.nproc, e = Popen("nproc --all",shell=True,stdout=PIPE).communicate()
              try:
                  self.OMP = os.environ['OMP_NUM_THREADS']
              except KeyError:
                  self.OMP = None
              os.environ['OMP_NUM_THREADS'] = self.nproc
          else:
              if self.OMP != None:
                  # restore the bash variable to its original state
                  os.environ['OMP_NUM_THREADS'] = self.OMP
code_tokens: def handle_OMP ( self ) : if self . verbose : print 'handling OMP_NUM_THREADS bash variable' if self . nproc == None : self . nproc , e = Popen ( "nproc --all" , shell = True , stdout = PIPE ) . communicate ( ) try : self . OMP = os . environ [ 'OMP_NUM_THREADS' ] except KeyError : self . OMP = None os . environ [ 'OMP_NUM_THREADS' ] = self . nproc else : if self . OMP != None : os . environ [ 'OMP_NUM_THREADS' ] = self . OMP
short_docstring: Manage the setting of OMP_NUM_THREADS to most efficiently
  utilize parallelization.
short_docstring_tokens: Manage the setting of OMP_NUM_THREADS to most efficiently utilize parallelization .
comment: '''
          Manage the setting of OMP_NUM_THREADS to most efficiently
          utilize parallelization.
          '''$SEP$# on init, the variable is not set$SEP$# restore the bash variable to its original state