pysilcam/postprocess.py
def gen_roifiles(stats, auto_scaler=500):
    ''' generates a list of filenames suitable for making montages with

    Args:
        stats (DataFrame)           : particle statistics from silcam process
        auto_scaler=500             : approximate number of particle that are attempted to be pack into montage

    Returns:
        roifiles                    : a selection of filenames that can be passed to montage_maker() for making nice montages
    '''

    roifiles = stats['export name'][stats['export name'] !=
            'not_exported'].values

    # subsample the particles if necessary
    logger.info('rofiles: {0}'.format(len(roifiles)))
    IMSTEP = np.max([np.int(np.round(len(roifiles)/auto_scaler)),1])
    logger.info('reducing particles by factor of {0}'.format(IMSTEP))
    roifiles = roifiles[np.arange(0,len(roifiles),IMSTEP)]
    logger.info('rofiles: {0}'.format(len(roifiles)))

    return roifiles
 generates a list of filenames suitable for making montages with

    Args:
        stats (DataFrame)           : particle statistics from silcam process
        auto_scaler=500             : approximate number of particle that are attempted to be pack into montage

    Returns:
        roifiles                    : a selection of filenames that can be passed to montage_maker() for making nice montages
    
generates a list of filenames suitable for making montages with
generates a list of filenames suitable for making montages with
def gen_roifiles(stats, auto_scaler=500):
    roifiles = stats['export name'][stats['export name'] !=
            'not_exported'].values
    logger.info('rofiles: {0}'.format(len(roifiles)))
    IMSTEP = np.max([np.int(np.round(len(roifiles)/auto_scaler)),1])
    logger.info('reducing particles by factor of {0}'.format(IMSTEP))
    roifiles = roifiles[np.arange(0,len(roifiles),IMSTEP)]
    logger.info('rofiles: {0}'.format(len(roifiles)))
    return roifiles
def gen_roifiles ( stats , auto_scaler = 500 ) : roifiles = stats [ 'export name' ] [ stats [ 'export name' ] != 'not_exported' ] . values logger . info ( 'rofiles: {0}' . format ( len ( roifiles ) ) ) IMSTEP = np . max ( [ np . int ( np . round ( len ( roifiles ) / auto_scaler ) ) , 1 ] ) logger . info ( 'reducing particles by factor of {0}' . format ( IMSTEP ) ) roifiles = roifiles [ np . arange ( 0 , len ( roifiles ) , IMSTEP ) ] logger . info ( 'rofiles: {0}' . format ( len ( roifiles ) ) ) return roifiles
generates a list of filenames suitable for making montages with
generates a list of filenames suitable for making montages with
''' generates a list of filenames suitable for making montages with

    Args:
        stats (DataFrame)           : particle statistics from silcam process
        auto_scaler=500             : approximate number of particle that are attempted to be pack into montage

    Returns:
        roifiles                    : a selection of filenames that can be passed to montage_maker() for making nice montages
    ''' # subsample the particles if necessary
roifiles                    : a selection of filenames that can be passed to montage_maker() for making nice montages
roifiles : a selection of filenames that can be passed to montage_maker () for making nice montages
stats
particle statistics from silcam process
particle statistics from silcam process
auto_scaler
auto_scaler=500             
approximate number of particle that are attempted to be pack into montage
approximate number of particle that are attempted to be pack into montage