Package glue :: Package segmentdb :: Module logic
[hide private]
[frames] | no frames]

Module logic

source code

Utility methods for doing logical operations on sets of segments


Version: 8cbd1b7187ce3ed9a825d6ed11cc432f3cfde9a5

Date: 2017-12-05 15:29:36 +0000

Author: Larne Pekowsky <lppekows@physics.syr.edu>

Functions [hide private]
 
run_file_operation(outdoc, filenames, use_segment_table, operation, preserve=True)
Performs an operation (intersect or union) across a set of files.
source code
 
run_segment_operation(outdoc, filenames, segments, use_segment_table, operation, result_name='RESULT', preserve=True)
Performs an operation (intersect or union) across a set of segments.
source code
Variables [hide private]
  DIFF = 'diff'
  INTERSECT = 'intersect'
  UNION = 'union'
  __package__ = 'glue.segmentdb'
Function Details [hide private]

run_file_operation(outdoc, filenames, use_segment_table, operation, preserve=True)

source code 

Performs an operation (intersect or union) across a set of files. That is, given a set of files each with segment definers DMT-FLAG1, DMT-FLAG2 etc the result is a file where

DMT-FLAG1 = (file 1's DMT-FLAG1 operation file 2's DMT-FLAG1 operation ...) DMT-FLAG2 = (file 1's DMT-FLAG2 operation file 2's DMT-FLAG2 operation ...)

etc

run_segment_operation(outdoc, filenames, segments, use_segment_table, operation, result_name='RESULT', preserve=True)

source code 

Performs an operation (intersect or union) across a set of segments.
That is, given a set of files each with segment definers DMT-FLAG1,
DMT-FLAG2 etc and a list of segments DMT-FLAG1,DMT-FLAG1 this returns

RESULT = (table 1's DMT-FLAG1 union table 2's DMT-FLAG1 union ...)
         operation
         (table 1's DMT-FLAG2 union table 2's DMT-FLAG2 union ...)
         operation
etc