pysilcam/silcreport.py
def silcreport():
    """Generate a report figure for a processed dataset from the SilCam.

    You can access this function from the command line using the below documentation.

    Usage:
        silcam-report <configfile> <statsfile> [--type=<particle_type>]
                      [--dpi=<dpi>] [--monitor]

    Arguments:
        configfile:  The config filename associated with the data
        statsfile:   The -STATS.csv filename associated with the data

    Options:
        --type=<particle_type>  The particle type to summarise. Can be: 'all',
                                'oil', or 'gas'
        --dpi=<dpi>             DPI resolution of figure (default is 600)
        --monitor               Enables continuous monitoring (requires display)
        -h --help               Show this screen.

    """

    args = docopt(silcreport.__doc__)

    particle_type = scpp.outputPartType.all
    particle_type_str = 'all'
    if args['--type'] == 'oil':
        particle_type = scpp.outputPartType.oil
        particle_type_str = args['--type']
    elif args['--type'] == 'gas':
        particle_type = scpp.outputPartType.gas
        particle_type_str = args['--type']

    logger.info(particle_type_str)

    dpi = 600
    if args['--dpi']:
        dpi = int(args['--dpi'])

    monitor = False
    if args['--monitor']:
        logger.info('  Monitoring enabled:')
        logger.info('    press ctrl+c to stop.')
        monitor = True

    silcam_report(args['<statsfile>'], args['<configfile>'],
                  particle_type=particle_type,
                  particle_type_str=particle_type_str, monitor=monitor, dpi=dpi)
Generate a report figure for a processed dataset from the SilCam.

    You can access this function from the command line using the below documentation.

    Usage:
        silcam-report <configfile> <statsfile> [--type=<particle_type>]
                      [--dpi=<dpi>] [--monitor]

    Arguments:
        configfile:  The config filename associated with the data
        statsfile:   The -STATS.csv filename associated with the data

    Options:
        --type=<particle_type>  The particle type to summarise. Can be: 'all',
                                'oil', or 'gas'
        --dpi=<dpi>             DPI resolution of figure (default is 600)
        --monitor               Enables continuous monitoring (requires display)
        -h --help               Show this screen.

    
Generate a report figure for a processed dataset from the SilCam.
You can access this function from the command line using the below documentation.


Generate a report figure for a processed dataset from the SilCam . You can access this function from the command line using the below documentation .
def silcreport():
    args = docopt(silcreport.__doc__)
    particle_type = scpp.outputPartType.all
    particle_type_str = 'all'
    if args['--type'] == 'oil':
        particle_type = scpp.outputPartType.oil
        particle_type_str = args['--type']
    elif args['--type'] == 'gas':
        particle_type = scpp.outputPartType.gas
        particle_type_str = args['--type']
    logger.info(particle_type_str)
    dpi = 600
    if args['--dpi']:
        dpi = int(args['--dpi'])
    monitor = False
    if args['--monitor']:
        logger.info('  Monitoring enabled:')
        logger.info('    press ctrl+c to stop.')
        monitor = True
    silcam_report(args['<statsfile>'], args['<configfile>'],
                  particle_type=particle_type,
                  particle_type_str=particle_type_str, monitor=monitor, dpi=dpi)
def silcreport ( ) : args = docopt ( silcreport . __doc__ ) particle_type = scpp . outputPartType . all particle_type_str = 'all' if args [ '--type' ] == 'oil' : particle_type = scpp . outputPartType . oil particle_type_str = args [ '--type' ] elif args [ '--type' ] == 'gas' : particle_type = scpp . outputPartType . gas particle_type_str = args [ '--type' ] logger . info ( particle_type_str ) dpi = 600 if args [ '--dpi' ] : dpi = int ( args [ '--dpi' ] ) monitor = False if args [ '--monitor' ] : logger . info ( '  Monitoring enabled:' ) logger . info ( '    press ctrl+c to stop.' ) monitor = True silcam_report ( args [ '<statsfile>' ] , args [ '<configfile>' ] , particle_type = particle_type , particle_type_str = particle_type_str , monitor = monitor , dpi = dpi )
Generate a report figure for a processed dataset from the SilCam.
Generate a report figure for a processed dataset from the SilCam .
"""Generate a report figure for a processed dataset from the SilCam.

    You can access this function from the command line using the below documentation.

    Usage:
        silcam-report <configfile> <statsfile> [--type=<particle_type>]
                      [--dpi=<dpi>] [--monitor]

    Arguments:
        configfile:  The config filename associated with the data
        statsfile:   The -STATS.csv filename associated with the data

    Options:
        --type=<particle_type>  The particle type to summarise. Can be: 'all',
                                'oil', or 'gas'
        --dpi=<dpi>             DPI resolution of figure (default is 600)
        --monitor               Enables continuous monitoring (requires display)
        -h --help               Show this screen.

    """
configfile
The config filename associated with the data
The config filename associated with the data
statsfile
STATS.csv filename associated with the data
STATS . csv filename associated with the data