14 ListOfDefaultPositionalKeys=[
'--allowRename',
'--amiConfig',
'--amiMetadataTag',
'--checkEventCount',
'--env',
'--execOnly',
'--ignoreErrors',
'--inputBSFile',
'--maskEmptyInputs',
'--noimf',
'--notcmalloc',
'--outputBS_MRGFile',
'--reportName',
'--showGraph',
'--showPath',
'--showSteps',
'--skipFileValidation',
'--skipInputFileValidation',
'--skipOutputFileValidation']
18 msg.info(
'logging set in %s' % sys.argv[0])
22 from PyJobTransforms.trfDecorators
import stdTrfExceptionHandler, sigUsrStackTrace
26 @stdTrfExceptionHandler
30 msg.info(
'This is %s' % sys.argv[0])
33 trf.parseCmdLineArgs(sys.argv[1:])
37 msg.info(
"%s stopped at %s, trf exit code %d" % (sys.argv[0], time.asctime(), trf.exitCode))
38 sys.exit(trf.exitCode)
41 trf =
transform(executor = bsMergeExecutor(name =
'RAWFileMerge', exe =
'file_merging',
42 inData =
set([
'BS']), outData =
set([
'BS_MRG'])))
50 parser.defineArgGroup(
'RAWMerge_tf',
'RAWMerge specific options')
51 parser.add_argument(
'--inputBSFile', nargs=
'+',
52 type=trfArgClasses.argFactory(trfArgClasses.argBSFile, io=
'input'),
53 help=
'Input BS file(s)', group=
'RAWMerge_tf')
54 parser.add_argument(
'--outputBS_MRGFile',
'--outputBSFile',
55 type=trfArgClasses.argFactory(trfArgClasses.argBSFile, io=
'output'),
56 help=
'Output merged BS file (best if this file ends in ._0001.data, but see allowRename option below)',
58 parser.add_argument(
'--maskEmptyInputs', type=trfArgClasses.argFactory(trfArgClasses.argBool), group=
'RAWMerge_tf',
59 help=
'If true then empty BS files are not included in the merge (default True)',
60 default=trfArgClasses.argBool(
'True'))
61 parser.add_argument(
'--allowRename', type=trfArgClasses.argFactory(trfArgClasses.argBool), group=
'RAWMerge_tf',
62 help=
'If true merged BS file will be forcibly renamed to the value of "outputBSFile" (default True)',
63 default=trfArgClasses.argBool(
'True'))
66 if __name__ ==
'__main__':