14.1.1. Top-Level Interfaces

14.1.1.1. mosaic.apps.SingleChannelAnalysis module

Top level module to run a single channel analysis.

Created:

05/15/2014

Author:

Arvind Balijepalli <arvind.balijepalli@nist.gov>

License:

See LICENSE.TXT

ChangeLog:

3/25/17 AB Allow an optional argument to pass a database name.
5/15/14 AB Initial version
class mosaic.apps.SingleChannelAnalysis.SingleChannelAnalysis(dataPath, trajDataHnd, dataFilterHnd, eventPartitionHnd, eventProcHnd, **kwargs)[source]

Bases: object

Run a single channel analysis. This is the entry point class for the analysis.

Parameters:
  • dataPath : full path to the data directory

  • trajDataHnd : a handle to an implementation of metaTrajIO

  • dataFilterHnd : a handle to an impementation of metaIOFilter

  • eventPartitionHnd : a handle to a sub-class of metaEventPartition

  • eventProcHnd : a handle to a sub-class of metaEventProcessor

  • dbFilename : explicitly set the database name (optional kwarg).

Run(forkProcess=False)[source]

Start an analysis.

Parameters:
  • forkProcess : start the analysis in a separate process if True. This option is useful when the main thread is used for other processing (e.g. GUI implementations).

Stop()[source]

Stop a running analysis.

14.1.1.2. mosaic.apps.ConvertTrajIO module

Top level module to convert any data file readble by TrajIO objects into a comma separated value text file.

Created:

10/13/2014

Author:

Arvind Balijepalli <arvind.balijepalli@nist.gov>

License:

See LICENSE.TXT

ConvertTrajIO._filename()[source]

Return a output filename that contains the data file prefix and and the block index.

ConvertTrajIO._creategenerator()[source]

Create a new filename generator if the file prefix has changed. The generator returns a filename incremented by a counter each time its next() function is called.

class mosaic.apps.ConvertTrajIO.ConvertTrajIO(trajDataObj, outdir=None, extension='csv')[source]

Bases: object

Convert data from a sub-class of metaTrajIO to either a delimited text file or binary file format.

Parameters:
  • trajDataObj : a trajIO data object

  • outdir : the output directory. Default is None, which causes the output to be saved in the same directory as the input data.

  • extension : ‘csv’ for comma separated values (default), ‘tsv’ for tab separated values, or ‘bin’ for 64-bit double precision binary.

Convert(blockSize)[source]

Start converting data

Parameters:
  • blockSize : number of data points to convert.