pyrats/utils.py
def _get_ncpus():
    '''
    output the number of cpus available for OMP tasks
    '''
    try:
        ncpus = int(os.environ['PBS_NUM_PPN'])
    except KeyError:
        ncpus = 1
    return ncpus

    output the number of cpus available for OMP tasks
    
output the number of cpus available for OMP tasks
output the number of cpus available for OMP tasks
def _get_ncpus():
    try:
        ncpus = int(os.environ['PBS_NUM_PPN'])
    except KeyError:
        ncpus = 1
    return ncpus
def _get_ncpus ( ) : try : ncpus = int ( os . environ [ 'PBS_NUM_PPN' ] ) except KeyError : ncpus = 1 return ncpus
output the number of cpus available for OMP tasks
output the number of cpus available for OMP tasks
'''
    output the number of cpus available for OMP tasks
    '''