Belle II Software  release-06-00-14
MaxFilesSplitter Class Reference
Inheritance diagram for MaxFilesSplitter:
Collaboration diagram for MaxFilesSplitter:

Public Member Functions

def __init__ (self, *arguments_generator=None, max_files_per_subjob=1)
 
def create_subjobs (self, job)
 
def assign_arguments (self, job)
 
def __repr__ (self)
 

Public Attributes

 max_files_per_subjob
 The maximium number of input files that will be used for each SubJob created.
 
 arguments_generator
 The ArgumentsGenerator used when creating subjobs.
 

Detailed Description

Definition at line 199 of file backends.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
arguments_generator = None,
  max_files_per_subjob = 1 
)
Parameters:
    max_files_per_subjob (int): The maximium number of input files used per `SubJob` created.

Definition at line 201 of file backends.py.

Member Function Documentation

◆ assign_arguments()

def assign_arguments (   self,
  job 
)
inherited
Use the `arguments_generator` (if one exists) to assign the argument tuples to the
subjobs.

Definition at line 169 of file backends.py.

◆ create_subjobs()

def create_subjobs (   self,
  job 
)
This function creates subjobs for the parent job passed in. It creates as many subjobs as required
in order to prevent the number of input files per subjob going over the limit set by
`MaxFilesSplitter.max_files_per_subjob`.

Reimplemented from SubjobSplitter.

Definition at line 210 of file backends.py.


The documentation for this class was generated from the following file: