Skip to content

Latest commit

 

History

History
76 lines (58 loc) · 1.77 KB

context.md

File metadata and controls

76 lines (58 loc) · 1.77 KB

leo3ltb.context

processBatch

processBatch(self, batchDefinition, *, outdir='', tempdir='', logdir='', clearoutputdir=False)

Gets a batch context to process a batch. Create a log, output and tmp dir.

Returns:

  • LTBBatchContext, a scope object. It may be used as
with leo3ltb.processBatch(...) as batch:
    [...] # do something with the batch

@see LTBBatchContext below.

processBatches

processBatches(self, batchDefinitions, *, outdir='', tempdir='', logdir='', clearoutputdir=False)

Gets a batch context for each batch to process. Create a log, output and tmp dir for each batch.

Returns:

  • a list of LTBBatchContext, a list of scope object. It may be used as
with leo3ltb.processBatch(...) as batches:
    for batch in batches
        [...] # do something with the batch

@see LTBBatchContext below.

LTBBatchContext

LTBBatchContext(self, *, definition, outdir, tempdir, logdir)

tempfile

LTBBatchContext.tempfile(self, name)

Open a tempfile with name 'name' in the tempdir specified in processBatch.

outfile

LTBBatchContext.outfile(self, name)

Open a outfile with name 'name' in the outdir specified in processBatch.

logfile

LTBBatchContext.logfile(self, name)

Open a logfile with name 'name' in the logdir specified in processBatch.

augmentProblemVariant

LTBBatchContext.augmentProblemVariant(self, problemVariant)

Augment a problem file by its variant and adding all imports from its batch definition.

augmentProblemVariantWithCpy

LTBBatchContext.augmentProblemVariantWithCpy(self, problemVariant)

Augment a problem file by its variant and adding all imports from its batch definition by opening the imported files and copy their content.