Result mass extraction

Classes to manipulate output from job-folder calculations.

class pylada.jobfolder.massextract.MassExtract(path=None, **kwargs)[source]

Bases: pylada.jobfolder.extract.AbstractMassExtract

Collects extraction properties from different folders.

Collects extractors across executable folders. The results are presented as attributes of an instance of MassExtract, and arranged as directory where the key is the name of the job and the value obtained from an instance of that job’s Extract. This class is set-up to fail silently, and hence is of limited use for diagnosis.

For properties to be forwarded, the functional should have an Extract attribute which takes a directory path as argument.

avoid(excludes)

Returns a new object with further exclusions.

Parameters:excludes (str or list of str or None) – Pattern or patterns to exclude from output.

The goal of this function is to work as an anti operator [], i.e. by excluding from the output anything that matches the patterns, rather including only those which match the pattern. This is strickly equivalent to:

>>> other = massextract.copy(excludes=excludes)
>>> other.excludes.extend(massextract.excludes)

and then doing calculations with other. The advantage is that it can all be done on one line.

If the excludes argument is None or an empty list, then the returned object will not exlude anything.

excludes

Pattern or List of patterns to ignore. or None.

unix_re determines whether these are unix-command-line like patterns or true python regex.

items()

Iterates through all extraction objects and names.

iterfiles(**kwargs)

Iterates over output/input files.

This is rerouted to all extraction objects.

iteritems()

Iterates through all extraction objects and names.

iterkeys()

Iterates through all extraction objects.

itervalues()

Iterates through all extraction objects.

jobfolder[source]

Root of the job-folder wrapped by this instance.

keys()

Iterates through all extraction objects.

rootpath[source]

Root of the directory tree where computational results can be found.

shallow_copy(**kwargs)

Returns a shallow copy.

Parameters:kwargs – Any keyword attribute will modify the corresponding attribute of the copy.
uncache()

Uncache values.

values()

Iterates through all extraction objects.

Previous topic

Result mass extraction

Next topic

Extract base classes

This Page