AlloViz.Wrappers.Base.Multicore#

class AlloViz.Wrappers.Base.Multicore(protein, d)[source]#

Bases: Base

Class for multi-core packages calculations

This class defines additional attributes ‘taskcpus’ and ‘_empties’ in ‘__new__’ for packages that are able to perform multi-core calculations by themselves (besides AlloViz’s parallelization of the calculations for each trajectory file). ‘taskcpus’ is the number of cores the package should use per trajectory and ‘_empties’ the number of empty jobs that should be sent to the same Pool that the task/_computation is being sent to to “occupy” the number of cores that the package is going to use in reality, as sending it to the Pool would only take 1 of its workers. It extends the _calculate() private method to do it.

Methods

filter([filterings])

Filter network edges